has_nothrow_copy_constructor hooked up to clang. Filed http://llvm.org/bugs/show_bug.cgi?id=8107 to take care of several types which don't work yet. If there is some reason we don't want to handle these types in the compiler, I can handle most of them in the library.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@113294 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -744,7 +744,18 @@ template <class _Tp> struct has_trivial_copy_constructor
|
||||
|
||||
// has_nothrow_copy_constructor
|
||||
|
||||
template <class _Tp> struct has_nothrow_copy_constructor : public has_trivial_copy_constructor<_Tp> {};
|
||||
#if __GNUC__ >= 4 && __GNUC_MINOR__ >= 3 || defined(__clang__)
|
||||
|
||||
template <class _Tp> struct has_nothrow_copy_constructor
|
||||
: public integral_constant<bool, __has_nothrow_copy(_Tp)> {};
|
||||
|
||||
#else // __GNUC__ >= 4 && __GNUC_MINOR__ >= 3 || defined(__clang__)
|
||||
|
||||
template <class _Tp> struct has_nothrow_copy_constructor
|
||||
: public has_trivial_copy_constructor<_Tp> {};
|
||||
|
||||
#endif // __GNUC__ >= 4 && __GNUC_MINOR__ >= 3 || defined(__clang__)
|
||||
|
||||
|
||||
// has_nothrow_move_constructor
|
||||
|
||||
|
Reference in New Issue
Block a user