Ticket #7478: 7478.patch
File 7478.patch, 5.0 KB (added by , 10 years ago) |
---|
-
boost/ratio/detail/ratio_io.hpp
44 44 #include <boost/static_string/static_string.hpp> 45 45 #endif 46 46 47 #if defined(BOOST_NO_CXX11_UNICODE_LITERALS) || defined(BOOST_NO_CXX11_CHAR16_T) || defined(BOOST_NO_CXX11_CHAR32_T) 48 //~ #define BOOST_RATIO_HAS_UNICODE_SUPPORT 47 #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) 48 #if defined BOOST_RATIO_HAS_UNICODE_SUPPORT 49 #undef BOOST_RATIO_HAS_UNICODE_SUPPORT 50 #endif 49 51 #else 50 52 #define BOOST_RATIO_HAS_UNICODE_SUPPORT 1 51 53 #endif -
boost/ratio/ratio_io.hpp
49 49 #include <boost/static_string/static_string.hpp> 50 50 #endif 51 51 52 #if defined(BOOST_NO_CXX11_UNICODE_LITERALS) || defined(BOOST_NO_CXX11_CHAR16_T) || defined(BOOST_NO_CXX11_CHAR32_T) 53 //~ #define BOOST_RATIO_HAS_UNICODE_SUPPORT 52 #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) 53 #if defined BOOST_RATIO_HAS_UNICODE_SUPPORT 54 #undef BOOST_RATIO_HAS_UNICODE_SUPPORT 55 #endif 54 56 #else 55 57 #define BOOST_RATIO_HAS_UNICODE_SUPPORT 1 56 58 #endif … … 120 122 static std::string prefix() {return std::string("atto");} 121 123 }; 122 124 123 #if BOOST_RATIO_HAS_UNICODE_SUPPORT125 #if defined BOOST_RATIO_HAS_UNICODE_SUPPORT 124 126 125 127 template <> 126 128 struct ratio_string<atto, char16_t> … … 165 167 static std::string prefix() {return std::string("femto");} 166 168 }; 167 169 168 #if BOOST_RATIO_HAS_UNICODE_SUPPORT170 #if defined BOOST_RATIO_HAS_UNICODE_SUPPORT 169 171 170 172 template <> 171 173 struct ratio_string<femto, char16_t> … … 209 211 static std::string prefix() {return std::string("pico");} 210 212 }; 211 213 212 #if BOOST_RATIO_HAS_UNICODE_SUPPORT214 #if defined BOOST_RATIO_HAS_UNICODE_SUPPORT 213 215 214 216 template <> 215 217 struct ratio_string<pico, char16_t> … … 253 255 static std::string prefix() {return std::string("nano");} 254 256 }; 255 257 256 #if BOOST_RATIO_HAS_UNICODE_SUPPORT258 #if defined BOOST_RATIO_HAS_UNICODE_SUPPORT 257 259 258 260 template <> 259 261 struct ratio_string<nano, char16_t> … … 297 299 static std::string prefix() {return std::string("micro");} 298 300 }; 299 301 300 #if BOOST_RATIO_HAS_UNICODE_SUPPORT302 #if defined BOOST_RATIO_HAS_UNICODE_SUPPORT 301 303 302 304 template <> 303 305 struct ratio_string<micro, char16_t> … … 341 343 static std::string prefix() {return std::string("milli");} 342 344 }; 343 345 344 #if BOOST_RATIO_HAS_UNICODE_SUPPORT346 #if defined BOOST_RATIO_HAS_UNICODE_SUPPORT 345 347 346 348 template <> 347 349 struct ratio_string<milli, char16_t> … … 385 387 static std::string prefix() {return std::string("centi");} 386 388 }; 387 389 388 #if BOOST_RATIO_HAS_UNICODE_SUPPORT390 #if defined BOOST_RATIO_HAS_UNICODE_SUPPORT 389 391 390 392 template <> 391 393 struct ratio_string<centi, char16_t> … … 430 432 static std::string prefix() {return std::string("deci");} 431 433 }; 432 434 433 #if BOOST_RATIO_HAS_UNICODE_SUPPORT435 #if defined BOOST_RATIO_HAS_UNICODE_SUPPORT 434 436 435 437 template <> 436 438 struct ratio_string<deci, char16_t> … … 477 479 static std::string prefix() {return std::string("deca");} 478 480 }; 479 481 480 #if BOOST_RATIO_HAS_UNICODE_SUPPORT482 #if defined BOOST_RATIO_HAS_UNICODE_SUPPORT 481 483 482 484 template <> 483 485 struct ratio_string<deca, char16_t> … … 521 523 static std::string prefix() {return std::string("hecto");} 522 524 }; 523 525 524 #if BOOST_RATIO_HAS_UNICODE_SUPPORT526 #if defined BOOST_RATIO_HAS_UNICODE_SUPPORT 525 527 526 528 template <> 527 529 struct ratio_string<hecto, char16_t> … … 565 567 static std::string prefix() {return std::string("kilo");} 566 568 }; 567 569 568 #if BOOST_RATIO_HAS_UNICODE_SUPPORT570 #if defined BOOST_RATIO_HAS_UNICODE_SUPPORT 569 571 570 572 template <> 571 573 struct ratio_string<kilo, char16_t> … … 610 612 static std::string prefix() {return std::string("mega");} 611 613 }; 612 614 613 #if BOOST_RATIO_HAS_UNICODE_SUPPORT615 #if defined BOOST_RATIO_HAS_UNICODE_SUPPORT 614 616 615 617 template <> 616 618 struct ratio_string<mega, char16_t> … … 655 657 static std::string prefix() {return std::string("giga");} 656 658 }; 657 659 658 #if BOOST_RATIO_HAS_UNICODE_SUPPORT660 #if defined BOOST_RATIO_HAS_UNICODE_SUPPORT 659 661 660 662 template <> 661 663 struct ratio_string<giga, char16_t> … … 700 702 static std::string prefix() {return std::string("tera");} 701 703 }; 702 704 703 #if BOOST_RATIO_HAS_UNICODE_SUPPORT705 #if defined BOOST_RATIO_HAS_UNICODE_SUPPORT 704 706 705 707 template <> 706 708 struct ratio_string<tera, char16_t> … … 744 746 static std::string prefix() {return std::string("peta");} 745 747 }; 746 748 747 #if BOOST_RATIO_HAS_UNICODE_SUPPORT749 #if defined BOOST_RATIO_HAS_UNICODE_SUPPORT 748 750 749 751 template <> 750 752 struct ratio_string<peta, char16_t> … … 788 790 static std::string prefix() {return std::string("exa");} 789 791 }; 790 792 791 #if BOOST_RATIO_HAS_UNICODE_SUPPORT793 #if defined BOOST_RATIO_HAS_UNICODE_SUPPORT 792 794 793 795 template <> 794 796 struct ratio_string<exa, char16_t>