diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2017-03-23 02:40:28 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2017-03-23 02:40:28 +0000 |
commit | 7c803385a75cf59c1730e8bdcf295c5a47ce36f2 (patch) | |
tree | a0da2795868760116fffd74d409655c50fe9ce88 /libcxx/include/variant | |
parent | 6974dd6412cd9cbb0849cc77b7381ad3b2a97fff (diff) | |
download | bcm5719-llvm-7c803385a75cf59c1730e8bdcf295c5a47ce36f2.tar.gz bcm5719-llvm-7c803385a75cf59c1730e8bdcf295c5a47ce36f2.zip |
Implement P0599: 'noexcept for hash functions'. Fix a couple of hash functions (optional<T> and unique_ptr<T>) which were mistakenly marked as 'noexcept'. Reviewed as https://reviews.llvm.org/D31234
llvm-svn: 298573
Diffstat (limited to 'libcxx/include/variant')
-rw-r--r-- | libcxx/include/variant | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/variant b/libcxx/include/variant index 099e6c35849..33f88e05722 100644 --- a/libcxx/include/variant +++ b/libcxx/include/variant @@ -1562,7 +1562,7 @@ struct _LIBCPP_TEMPLATE_VIS hash<monostate> { using result_type = size_t; inline _LIBCPP_INLINE_VISIBILITY - result_type operator()(const argument_type&) const { + result_type operator()(const argument_type&) const _NOEXCEPT { return 66740831; // return a fundamentally attractive random value. } }; |