Boost logo

Boost :

Subject: [boost] [convert] coversion between strings with different locales
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2009-07-09 03:11:20


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);

Or it si a better way?

Vicente Juan Botet Escribá

Boost list run by bdawes at, gregod at, cpdaniel at, john at