//===----------------------------------------------------------------------===// // // 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. // //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03 // // unique_ptr // Test unique_ptr converting move ctor #include #include #include "test_macros.h" #include "unique_ptr_test_helper.h" #include "type_id.h" template struct GenericDeleter { void operator()(void*) const {} }; template struct GenericConvertingDeleter { template GenericConvertingDeleter(GenericConvertingDeleter) {} template GenericConvertingDeleter& operator=(GenericConvertingDeleter const&) { return *this; } void operator()(void*) const {} }; template using EnableIfNotSame = typename std::enable_if< !std::is_same::type, typename std::decay::type>::value >::type; template struct is_specialization; template