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