Index: boost/ratio/detail/ratio_io.hpp =================================================================== --- boost/ratio/detail/ratio_io.hpp (revision 80809) +++ boost/ratio/detail/ratio_io.hpp (working copy) @@ -44,8 +44,10 @@ #include #endif -#if defined(BOOST_NO_CXX11_UNICODE_LITERALS) || defined(BOOST_NO_CXX11_CHAR16_T) || defined(BOOST_NO_CXX11_CHAR32_T) -//~ #define BOOST_RATIO_HAS_UNICODE_SUPPORT +#if defined(BOOST_NO_CXX11_UNICODE_LITERALS) || defined(BOOST_NO_CXX11_CHAR16_T) || defined(BOOST_NO_CXX11_CHAR32_T) || defined(BOOST_NO_CXX11_U16STRING) || defined(BOOST_NO_CXX11_U32STRING) +#if defined BOOST_RATIO_HAS_UNICODE_SUPPORT +#undef BOOST_RATIO_HAS_UNICODE_SUPPORT +#endif #else #define BOOST_RATIO_HAS_UNICODE_SUPPORT 1 #endif Index: boost/ratio/ratio_io.hpp =================================================================== --- boost/ratio/ratio_io.hpp (revision 80809) +++ boost/ratio/ratio_io.hpp (working copy) @@ -49,8 +49,10 @@ #include #endif -#if defined(BOOST_NO_CXX11_UNICODE_LITERALS) || defined(BOOST_NO_CXX11_CHAR16_T) || defined(BOOST_NO_CXX11_CHAR32_T) -//~ #define BOOST_RATIO_HAS_UNICODE_SUPPORT +#if defined(BOOST_NO_CXX11_UNICODE_LITERALS) || defined(BOOST_NO_CXX11_CHAR16_T) || defined(BOOST_NO_CXX11_CHAR32_T) || defined(BOOST_NO_CXX11_U16STRING) || defined(BOOST_NO_CXX11_U32STRING) +#if defined BOOST_RATIO_HAS_UNICODE_SUPPORT +#undef BOOST_RATIO_HAS_UNICODE_SUPPORT +#endif #else #define BOOST_RATIO_HAS_UNICODE_SUPPORT 1 #endif @@ -120,7 +122,7 @@ static std::string prefix() {return std::string("atto");} }; -#if BOOST_RATIO_HAS_UNICODE_SUPPORT +#if defined BOOST_RATIO_HAS_UNICODE_SUPPORT template <> struct ratio_string @@ -165,7 +167,7 @@ static std::string prefix() {return std::string("femto");} }; -#if BOOST_RATIO_HAS_UNICODE_SUPPORT +#if defined BOOST_RATIO_HAS_UNICODE_SUPPORT template <> struct ratio_string @@ -209,7 +211,7 @@ static std::string prefix() {return std::string("pico");} }; -#if BOOST_RATIO_HAS_UNICODE_SUPPORT +#if defined BOOST_RATIO_HAS_UNICODE_SUPPORT template <> struct ratio_string @@ -253,7 +255,7 @@ static std::string prefix() {return std::string("nano");} }; -#if BOOST_RATIO_HAS_UNICODE_SUPPORT +#if defined BOOST_RATIO_HAS_UNICODE_SUPPORT template <> struct ratio_string @@ -297,7 +299,7 @@ static std::string prefix() {return std::string("micro");} }; -#if BOOST_RATIO_HAS_UNICODE_SUPPORT +#if defined BOOST_RATIO_HAS_UNICODE_SUPPORT template <> struct ratio_string @@ -341,7 +343,7 @@ static std::string prefix() {return std::string("milli");} }; -#if BOOST_RATIO_HAS_UNICODE_SUPPORT +#if defined BOOST_RATIO_HAS_UNICODE_SUPPORT template <> struct ratio_string @@ -385,7 +387,7 @@ static std::string prefix() {return std::string("centi");} }; -#if BOOST_RATIO_HAS_UNICODE_SUPPORT +#if defined BOOST_RATIO_HAS_UNICODE_SUPPORT template <> struct ratio_string @@ -430,7 +432,7 @@ static std::string prefix() {return std::string("deci");} }; -#if BOOST_RATIO_HAS_UNICODE_SUPPORT +#if defined BOOST_RATIO_HAS_UNICODE_SUPPORT template <> struct ratio_string @@ -477,7 +479,7 @@ static std::string prefix() {return std::string("deca");} }; -#if BOOST_RATIO_HAS_UNICODE_SUPPORT +#if defined BOOST_RATIO_HAS_UNICODE_SUPPORT template <> struct ratio_string @@ -521,7 +523,7 @@ static std::string prefix() {return std::string("hecto");} }; -#if BOOST_RATIO_HAS_UNICODE_SUPPORT +#if defined BOOST_RATIO_HAS_UNICODE_SUPPORT template <> struct ratio_string @@ -565,7 +567,7 @@ static std::string prefix() {return std::string("kilo");} }; -#if BOOST_RATIO_HAS_UNICODE_SUPPORT +#if defined BOOST_RATIO_HAS_UNICODE_SUPPORT template <> struct ratio_string @@ -610,7 +612,7 @@ static std::string prefix() {return std::string("mega");} }; -#if BOOST_RATIO_HAS_UNICODE_SUPPORT +#if defined BOOST_RATIO_HAS_UNICODE_SUPPORT template <> struct ratio_string @@ -655,7 +657,7 @@ static std::string prefix() {return std::string("giga");} }; -#if BOOST_RATIO_HAS_UNICODE_SUPPORT +#if defined BOOST_RATIO_HAS_UNICODE_SUPPORT template <> struct ratio_string @@ -700,7 +702,7 @@ static std::string prefix() {return std::string("tera");} }; -#if BOOST_RATIO_HAS_UNICODE_SUPPORT +#if defined BOOST_RATIO_HAS_UNICODE_SUPPORT template <> struct ratio_string @@ -744,7 +746,7 @@ static std::string prefix() {return std::string("peta");} }; -#if BOOST_RATIO_HAS_UNICODE_SUPPORT +#if defined BOOST_RATIO_HAS_UNICODE_SUPPORT template <> struct ratio_string @@ -788,7 +790,7 @@ static std::string prefix() {return std::string("exa");} }; -#if BOOST_RATIO_HAS_UNICODE_SUPPORT +#if defined BOOST_RATIO_HAS_UNICODE_SUPPORT template <> struct ratio_string