//--------------------------------------------------------------------------------------// // // // Emulate C++0x char16_t, char32_t, std::u16string, and std::u32string support // // unless already present or BOOST_NO_STRING_0X_EMULATION is defined. // // // // This is the same emulation already provided by Microsoft Visual C++ 2010 // // // //--------------------------------------------------------------------------------------// #if !defined(BOOST_STRING_0X_HPP) # define BOOST_STRING_0X_HPP # if !defined(BOOST_NO_STRING_0X_EMULATION) # include # include # include # if defined(BOOST_NO_CHAR16_T) && (!defined(_MSC_VER) || _MSC_VER < 1600) // VC++10 typedef boost::uint16_t char16_t; namespace std { typedef basic_string u16string; } # endif // char16_t emulation # if defined(BOOST_NO_CHAR16_T) && (!defined(_MSC_VER) || _MSC_VER < 1600) // VC++10 typedef boost::uint32_t char32_t; namespace std { typedef basic_string u32string; } # endif // char32_t emulation # endif // !defined(BOOST_NO_STRING_0X_EMULATION) #endif // !defined(BOOST_STRING_0X_HPP)