Some syntax errors
string str_out =convert<string>::from(convert<double>::from(str)(_locale=f))(_locale=t);
double d = convert<double>::from(str)(_locale=f);
string str_out = convert<string>::from(d)(_locale=d);
Thanks,
Vicente
----- Original Message -----
From: "vicente.botet" <
vicente.botet@...>
To: <
boost@...>
Sent: Thursday, July 09, 2009 9:11 AM
Subject: [boost] [convert] coversion between strings with different locales
Hi,
I wanted to see how we can convert a double from a locale to another locale?
Should I write
double d =convert<string>::from(convert<double>::from(str)(_locale=f))(_locale=t);
or I need
double d = convert<double>::from(str)(_locale=f);
convert<string>::from(d)(_locale=d);
Or it si a better way?
Best,
_____________________
Vicente Juan Botet Escribá
_______________________________________________
Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost_______________________________________________
Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost