ctor_copy.pass.cpp (1004B)
1 //===----------------------------------------------------------------------===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is dual licensed under the MIT and the University of Illinois Open 6 // Source Licenses. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 // These constructors are still unavailable in C++03, but this test depends 11 // on access control SFINAE and fails without it. 12 // UNSUPPORTED: c++98, c++03 13 14 // <locale> 15 16 // wstring_convert<Codecvt, Elem, Wide_alloc, Byte_alloc> 17 18 // wstring_convert(wstring_convert const&) = delete; 19 // wstring_convert& operator=(wstring_convert const&) = delete; 20 21 #include <locale> 22 #include <codecvt> 23 #include <cassert> 24 25 int main() 26 { 27 typedef std::codecvt_utf8<wchar_t> Codecvt; 28 typedef std::wstring_convert<Codecvt> Myconv; 29 static_assert(!std::is_copy_constructible<Myconv>::value, ""); 30 static_assert(!std::is_copy_assignable<Myconv>::value, ""); 31 }