We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hey! I was checking your answers and noticed that you are using stoi, stof and stood in module 06. As explained here, those are C++11 functions.
Did you get an exception from your School or is there a loophole in the rules?
bool Converter::isImpossible( void ) { try { if ( _type == INT ) { _n = std::stoi( _str ); } else if ( _type == FLOAT ) { _f = std::stof( _str ); } else if ( _type == DOUBLE ) { _d = std::stod( _str ); } } catch ( std::exception& e ) { _impossible = true; return true; } return false; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hey! I was checking your answers and noticed that you are using stoi, stof and stood in module 06. As explained here, those are C++11 functions.
Did you get an exception from your School or is there a loophole in the rules?
The text was updated successfully, but these errors were encountered: