
Hello Andy, I have to report an additional problem with the msvc .net 2008 sp1 (vc 9) platform on windows. Compiling and running the following program in optimized release mode does crash with a runtime exception. However, compiling with compiler flag /Od or in debug mode does work fine. #include <boost/uuid/uuid.hpp> namespace uuid_space = boost::uuids; typedef uuid_space::uuid uuid_type; uuid_type create_uuid() { uuid_space::uuid_generator generator; return generator(); } int main(int argc, char *argv[]) { uuid_type a = create_uuid(); return 0; } My settings: [ /O2 /Ob2 /Oi /GL /I "D:\_4640\Comp\Boost" /I "D:\_4640\Comp\boost-beta" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_SECURE_SCL=0" /D "_SCL_SECURE_NO_WARNINGS" /D "_CRT_SECURE_NO_DEPRECATE" /D "_SCL_SECURE_NO_DEPRECATE" /D "_UNICODE" /D "UNICODE" /FD /EHsc /MD /Gy /Fo"Release\\" /Fd"Release\vc90.pdb" /W3 /nologo /c /TP /errorReport:prompt /OUT:"D:\Learn\boost\uuid\Release\uuid.exe" /INCREMENTAL:NO /NOLOGO /MANIFEST /MANIFESTFILE:"Release\uuid.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"d:\Learn\boost\uuid\Release\uuid.pdb" /SUBSYSTEM:CONSOLE /OPT:REF /OPT:ICF /LTCG /DYNAMICBASE /NXCOMPAT /MACHINE:X86 /ERRORREPORT:PROMPT kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ] I'm not sure whether this reveals a new compiler bug of the microsoft compiler. Could you check if you have the same problem? Any suggestions how to circumvent this problem? Best, Johannes "Andy Tompkins" <atompkins@fastmail.fm> schrieb im Newsbeitrag news:1223508572.7529.1278294277@webmail.messagingengine.com...
Hi Johannes,
On Wed, 8 Oct 2008 15:03:54 +0200, "Johannes Brunen" <JBrunen@DataSolid.de> said:
Hello Andy,
I just did a small test with the latest uuid library from the vault.
IMHO, I found a small error in file uuid.hpp (line 303): function hash_value must be inlined as it is not a template function.
Absolutely correct. Thanks. I will fix this.
Additional is seems that the documentation is out of sync with the implementation. The section 'design notes' is still refering to a former implementation with the create(...) functions.
Again, absolutely correct. Thanks. I will fix this too.
Otherwise, I could compile and link the code on msvc .net 2008 with my setup.
thanks for your library,
best
Johannes
Thank you, Andy Tompkins _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost