Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile error #16

Open
mitch85 opened this issue Aug 19, 2018 · 1 comment
Open

compile error #16

mitch85 opened this issue Aug 19, 2018 · 1 comment

Comments

@mitch85
Copy link

mitch85 commented Aug 19, 2018

c++ example.cpp -o example -std=c++11

get an error and dont know why?!:(

Scheduler.h: In function ‘bool Bosma::try_parse(tm&, const string&, const string&)’:
Scheduler.h:59:22: error: ‘get_time’ is not a member of ‘std’
return !(ss >> std::get_time(&tm, format.c_str())).fail();

@TizianoFranzoi
Copy link

you need a compiler with std::get_time
its there since GCC >= V5.0

For Crosscompiling I only had GCC 4.85 so I could replace get_time with

the C equivalent:

char *result = strptime ( expression.c_str(), format.c_cstr(), &tim);
if(result)
return true
else
return false;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants