31 Oct
2012
31 Oct
'12
3:04 p.m.
On 31 October 2012 09:05 kpzhang [mailto:sail4dream@gmail.com] wrote :- ...snip...
People said it's very unlikely to be compiler's bug, but when compiled in debug moded(or disable optimization), the problem does disappear. I have been stuck with this problem for quite a few hours. Any help is appreciated. Thanks in advance. ...snip...
Not sure if its any help but just tried compiling this with VS2010 and VS2012
From VS command prompt (with boost version 1.51 pathed into include and lib)
cl test.cpp /EHsc /O2 and resulting test.exe is fine (with or without /O2) So does look like a problem with vs2008 specifically (sorry don't have one available to try any longer) Alex