
2 Apr
2009
2 Apr
'09
2:31 p.m.
Please take a look at the simple piece of code. When it is compiled on MSVC 2008 (no sp) , Win Sp2 then we receive access violation on program exit Can you tell me the reason of such strange behaviour? (boost 1.38.0) #include "stdafx.h" #include <iostream> #include <boost/lexical_cast.hpp> //#include <boost/thread.hpp> using namespace std; class ctest { public: ~ctest () { boost::lexical_cast<string>(1); } }; ctest a; int main(int argc, char* argv[]) { boost::lexical_cast<string>(1); return 0; }