I am new to using boost::lexical_cast and have minimal understanding of its internals. I am trying to do the following cast:
string someString = boost::lexical_cast<char>(sourceString);
However, boost is complaining that the above code is:
[Exception]: bad lexical cast: source type value could not be interpreted as target
The source is a string, however it will always only be 1 character long.
Could someone please explain?
Thanks.