You can convert anything to anything using a std::stringstream
. The only requirement is that the operators >>
and <<
be implemented. Stringstreams can be found in the
header file.
std::stringstream converter;
converter << myString;
converter >> myDouble;