diff options
| author | Eric Fiselier <eric@efcs.ca> | 2016-10-16 01:43:43 +0000 |
|---|---|---|
| committer | Eric Fiselier <eric@efcs.ca> | 2016-10-16 01:43:43 +0000 |
| commit | 9c737fddba93bce4127dbed4fa2a4440414c1afb (patch) | |
| tree | d4f62139b87579a3939e0f20b38681b48fa09786 /libcxx/include | |
| parent | e9cdb24f679cba41caa596c28309efbf6da9e786 (diff) | |
| download | bcm5719-llvm-9c737fddba93bce4127dbed4fa2a4440414c1afb.tar.gz bcm5719-llvm-9c737fddba93bce4127dbed4fa2a4440414c1afb.zip | |
Update issue status for LWG 2768 and 2769
llvm-svn: 284321
Diffstat (limited to 'libcxx/include')
| -rw-r--r-- | libcxx/include/any | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libcxx/include/any b/libcxx/include/any index 69fdbddd621..8fe9e8fe867 100644 --- a/libcxx/include/any +++ b/libcxx/include/any @@ -579,7 +579,8 @@ _ValueType any_cast(any const & __v) { using _RawValueType = __uncvref_t<_ValueType>; static_assert(is_constructible<_ValueType, _RawValueType const &>::value, - "ValueType is required to be a reference or a CopyConstructible type"); + "ValueType is required to be a const lvalue reference " + "or a CopyConstructible type"); auto __tmp = _VSTD::any_cast<add_const_t<_RawValueType>>(&__v); if (__tmp == nullptr) __throw_bad_any_cast(); @@ -592,7 +593,8 @@ _ValueType any_cast(any & __v) { using _RawValueType = __uncvref_t<_ValueType>; static_assert(is_constructible<_ValueType, _RawValueType &>::value, - "ValueType is required to be a reference or a CopyConstructible type"); + "ValueType is required to be an lvalue reference " + "or a CopyConstructible type"); auto __tmp = _VSTD::any_cast<_RawValueType>(&__v); if (__tmp == nullptr) __throw_bad_any_cast(); @@ -605,7 +607,8 @@ _ValueType any_cast(any && __v) { using _RawValueType = __uncvref_t<_ValueType>; static_assert(is_constructible<_ValueType, _RawValueType>::value, - "ValueType is required to be an rvalue reference or a CopyConstructible type"); + "ValueType is required to be an rvalue reference " + "or a CopyConstructible type"); auto __tmp = _VSTD::any_cast<_RawValueType>(&__v); if (__tmp == nullptr) __throw_bad_any_cast(); |

