vendredi 24 novembre 2017

how to convert std::string to boost::chrono::nanoseconds

I have tried lexical casting it from std::string and from long long. both gives zero value. any ideas?

boost::lexical_cast<boost::chrono::nanoseconds>(value) //value can be of std::string or long long type

Aucun commentaire:

Enregistrer un commentaire