summaryrefslogtreecommitdiff
path: root/include/thread
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2017-03-23 02:40:28 +0000
committerMarshall Clow <mclow.lists@gmail.com>2017-03-23 02:40:28 +0000
commitaf552ba05ab66f87d51e8de7b77f9dd65de1394f (patch)
tree24bfbb69bf6f515a0d87aa93b5e81efb09f1fc7f /include/thread
parent03096267d63ffc62898be94f454171d93bf5f845 (diff)
downloadlibcxx-af552ba05ab66f87d51e8de7b77f9dd65de1394f.tar.gz
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
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@298573 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/thread')
-rw-r--r--include/thread2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/thread b/include/thread
index 94c77e0cb..874ce3ec1 100644
--- a/include/thread
+++ b/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_);
}