
Bogdan M. wrote:
Hi all,
I upgraded to boost 1.33.1 and I started experiencing problems with the following simple program while building with Visual Studio 2005.
#include <iostream> #include
void main() { { std::cout << boost::posix_time::second_clock::universal_time(); } std::cout << std::endl; }
While printing the current time, the program crashes in Microsoft's 'xutility' header file (line 197) while trying to clean up some temporary strings created in time_facet.hpp (line 308), immediately after running boost::algorithm::replace_all(format, ss.str(), ""); I suspect the third parameter is the issue here (should it be surrounded explicitly with std::string("")?!).
Has anyone else encountered this problem.
I'm not aware of anyone else having this problem -- which doesn't mean they aren't. Anyway, the "" can't be std::string b/c it might be std::wstring. I've added string algorithms in the header since replace_all comes from there. Jeff