|
Boost : |
Subject: [boost] [date time] std::out_of_range thrown on date 2012-5-29
From: Matthijs Möhlmann (matthijs_at_[hidden])
Date: 2013-08-08 03:13:36
Hello all,
Following piece of program gives a std::out_of_range exception:
#include <boost/date_time/posix_time/posix_time.hpp>
int main(int argc, char **argv) {
boost::posix_time::ptime datetime;
datetime = boost::posix_time::time_from_string("2012-5-29");
return 0;
}
Compiled with the following line:
g++ -o main -lboost_date_time -g -std=c++11 main.cpp
Output:
matthijs_at_hammer % ./main
terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string::at
zsh: abort ./main
Platform: x86_64
Boost version: 1.54
Compiler version: gcc 4.8
Where can I officially report bugs?
Regards,
Matthijs Möhlmann
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk