Boost logo

Boost Users :

From: Bogdan M. (bogdan_at_[hidden])
Date: 2006-06-01 14:06:29


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 <boost/date_time/posix_time/posix_time.hpp>

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.

Thanks,

Bogdan


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net