39 imbue( std::locale(
"C" ));
43 :
std::stringstream( str )
45 imbue( std::locale(
"C" ));
50 std::string float_string;
51 *
this >> float_string;
52 size_t comma_index = float_string.find(
',' );
53 if( comma_index != std::string::npos )
55 float_string[ comma_index ] =
'.';
59 if( float_reader.fail() )
61 this->setstate( std::ios::failbit );