diff options
Diffstat (limited to 'libcxx/include/exception')
| -rw-r--r-- | libcxx/include/exception | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/include/exception b/libcxx/include/exception index b12a4c2b26e..181d604d6c1 100644 --- a/libcxx/include/exception +++ b/libcxx/include/exception @@ -243,8 +243,8 @@ throw_with_nested (_Tp& __t) #endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES { #ifndef _LIBCPP_NO_EXCEPTIONS - typedef typename remove_reference<_Tp>::type _Up; -// static_assert( is_copy_constructible<_Up>::value, ""); + typedef typename decay<_Tp>::type _Up; + static_assert( is_copy_constructible<_Up>::value, "type thrown must be CopyConstructible"); __throw_with_nested<_Tp, _Up, is_class<_Up>::value && !is_base_of<nested_exception, _Up>::value && |

