I am working with a XML serializer.
I wonder if I am creating a text element (xerces)
But the value I am after is a float, how do I convert it into a std::string?
Thanks
Jack
Printable View
I am working with a XML serializer.
I wonder if I am creating a text element (xerces)
But the value I am after is a float, how do I convert it into a std::string?
Thanks
Jack
Errors here. I've included iostream and using namespace std;Code:std::ostringstream ss;
ss << v.x;
std::string buff(ss.str());
Did you include <string> ?
Hi John,
I've included and not included it, but it seems to be of a little differences.
Thanks
Jack
First google hit: http://www.cplusplus.com/reference/s...ostringstream/
On the left side, under 'Reference' you see which header this is defined in.