Boost logo

Boost Users :

Subject: [Boost-users] [date_time] runtime error with intel c++ 11.0.072 (win32) and ptime's time_from_string()
From: Edward Rankin (erankin_at_[hidden])
Date: 2009-04-20 23:30:03


Hi all,

I have encountered a runtime error when date_time tries to parse a time from
a delimited string when compiled with intel c++ 11 in release mode. The
following code is what I used to replicate the error:

int main(int argc, char** argv)
{
    using namespace boost::posix_time;
    ptime first = microsec_clock::local_time();
    std::string temp = to_simple_string(first);
    ptime second = time_from_string(temp); // it crashes here
}

It works when using msvc9's compiler in debug and release mode and intel c++
11 debug mode. Any idea how to resolve this?

Thanks,

Edward



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