//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // template <> // class codecvt // : public locale::facet, // public codecvt_base // { // public: // typedef char16_t intern_type; // typedef char extern_type; // typedef mbstate_t state_type; // ... // }; #include #include #include int main() { typedef std::codecvt F; static_assert((std::is_base_of::value), ""); static_assert((std::is_base_of::value), ""); static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); std::locale l = std::locale::classic(); assert(std::has_facet(l)); const F& f = std::use_facet(l); (void)F::id; ((void)f); }