diff options
Diffstat (limited to 'libcxx/include')
-rw-r--r-- | libcxx/include/memory | 2 | ||||
-rw-r--r-- | libcxx/include/optional | 2 | ||||
-rw-r--r-- | libcxx/include/thread | 2 | ||||
-rw-r--r-- | libcxx/include/variant | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/libcxx/include/memory b/libcxx/include/memory index c7f540bb860..8ef4588020f 100644 --- a/libcxx/include/memory +++ b/libcxx/include/memory @@ -3037,7 +3037,7 @@ struct _LIBCPP_TEMPLATE_VIS hash<__enable_hash_helper< typedef unique_ptr<_Tp, _Dp> argument_type; typedef size_t result_type; _LIBCPP_INLINE_VISIBILITY - result_type operator()(const argument_type& __ptr) const _NOEXCEPT + result_type operator()(const argument_type& __ptr) const { typedef typename argument_type::pointer pointer; return hash<pointer>()(__ptr.get()); diff --git a/libcxx/include/optional b/libcxx/include/optional index 180f63ffcee..002842f5b31 100644 --- a/libcxx/include/optional +++ b/libcxx/include/optional @@ -1301,7 +1301,7 @@ struct _LIBCPP_TEMPLATE_VIS hash< typedef size_t result_type; _LIBCPP_INLINE_VISIBILITY - result_type operator()(const argument_type& __opt) const _NOEXCEPT + result_type operator()(const argument_type& __opt) const { return static_cast<bool>(__opt) ? hash<remove_const_t<_Tp>>()(*__opt) : 0; } diff --git a/libcxx/include/thread b/libcxx/include/thread index 94c77e0cba5..874ce3ec196 100644 --- a/libcxx/include/thread +++ b/libcxx/include/thread @@ -261,7 +261,7 @@ struct _LIBCPP_TEMPLATE_VIS hash<__thread_id> : public unary_function<__thread_id, size_t> { _LIBCPP_INLINE_VISIBILITY - size_t operator()(__thread_id __v) const + size_t operator()(__thread_id __v) const _NOEXCEPT { return hash<__libcpp_thread_id>()(__v.__id_); } 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. } }; |