summaryrefslogtreecommitdiffstats
path: root/src/future.cpp
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2011-05-28 14:41:13 +0000
committerHoward Hinnant <hhinnant@apple.com>2011-05-28 14:41:13 +0000
commit1694d23e23d41c4037111d96324c0c16c744c09d (patch)
tree991e43fcb62db3c39f956f9d903c45df6df52aec /src/future.cpp
parent10f25d2739e803bccfc22adfb76645f91e95a17c (diff)
downloadexternal_libcxx-1694d23e23d41c4037111d96324c0c16c744c09d.tar.gz
external_libcxx-1694d23e23d41c4037111d96324c0c16c744c09d.tar.bz2
external_libcxx-1694d23e23d41c4037111d96324c0c16c744c09d.zip
noexcept for <memory>. I've added a few extension noexcept to: allocator_traits<A>::deallocate, allocaate<T>::deallocate, return_temporary_buffer, and default_delete<T>::operator()(T*) const. My rationale was: If a std-dicated noexcept function needs to call another std-defined function, that called function must be noexcept. We're all a little new to noexcept, so things like this are to be expected. Also included fix for broken __is_swappable trait pointed out by Marc Glisse, thanks Marc|. And fixed a test case for is_nothrow_destructible. Destructors are now noexcept by default|
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@132261 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'src/future.cpp')
-rw-r--r--src/future.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/future.cpp b/src/future.cpp
index 8e79f3e3c..98c78055c 100644
--- a/src/future.cpp
+++ b/src/future.cpp
@@ -60,7 +60,7 @@ future_error::future_error(error_code __ec)
}
void
-__assoc_sub_state::__on_zero_shared()
+__assoc_sub_state::__on_zero_shared() _NOEXCEPT
{
delete this;
}