1 //===----------------------------------------------------------------------===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 // These constructors are still unavailable in C++03, but this test depends 10 // on access control SFINAE and fails without it. 11 // UNSUPPORTED: c++03 12 13 // <locale> 14 15 // wstring_convert<Codecvt, Elem, Wide_alloc, Byte_alloc> 16 17 // wstring_convert(wstring_convert const&) = delete; 18 // wstring_convert& operator=(wstring_convert const&) = delete; 19 20 #include <locale> 21 #include <codecvt> 22 #include <cassert> 23 24 #include "test_macros.h" 25 main(int,char **)26int main(int, char**) 27 { 28 typedef std::codecvt_utf8<wchar_t> Codecvt; 29 typedef std::wstring_convert<Codecvt> Myconv; 30 static_assert(!std::is_copy_constructible<Myconv>::value, ""); 31 static_assert(!std::is_copy_assignable<Myconv>::value, ""); 32 33 return 0; 34 } 35