Httphttpservletservicehttpservletjava688 at

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: or on the use of __value The library fails to compile with MSVC 8.0 with the following errors: cl -D_RWCONFIG=12d -I.\..\..\../include -I.\..\..\../include/ansi -I.\..\..\.. -I.\..\..\.. -I.. -I. -D_RWBUILD_std -nologo -GX -MD -W3 -O2 -GR -c ..\catalog.cpp cl : Command line warning D9035 : option 'GX' has been deprecated and will be removed in a future release cl : Command line warning D9036 : use 'EHsc' instead of 'GX' catalog.cpp .\..\..\../include\rw/_algobase.h(120) : error C4980: '__value' : use of this keyword requires /clr:oldSyntax command line option .\..\..\../include\rw/_algobase.h(120) : error C3630: error when processing the token '__value' .\..\..\../include\rw/_algobase.h(120) : fatal error C1190: managed targeted code requires a '/clr' option NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\cl.EXE"' : return code '0x2' Stop. std::generate_n() assumes Size can be decremented The requirement on the Size template argument to std::generate_n() in lib.alg.generate, p2 is that it be convertible to an integral type which does not imply that it be possible to decrement or otherwise modify its value. I.e., the program below is expected to compile successfully. $ cat t.cpp && nice make t #include <algorithm> struct Size { operator int() { return 0; } private: void operator=(Size&); }; template void std::generate_n (int*, Size, int (*)()); int main () { } eccp -c -I/build/sebor/dev/stdlib/include/ansi -D_RWSTDDEBUG -D_RWSTD_USE_CONFIG -I/build/sebor/eccp-3.6-11s/include -I/build/sebor/dev/stdlib/include -I/build/sebor/dev/stdlib/../rwtest -I/build/sebor/dev/stdlib/../rwtest/include -I/build/sebor/dev/stdlib/tests/include -A -x --template_directory=/build/sebor/eccp-3.6-11s/lib -g --display_error_number --remarks --diag_suppress 193,236,340,401,261,479,487,678,679,815 t.cpp "/build/sebor/dev/stdlib/include/algorithm", line 431: error #349: no operator "--" matches these operands operand ty...
View Full Document

This document was uploaded on 10/12/2012.

Ask a homework question - tutors are online