Mark LWG issue 2276 as complete. Add _LIBCPP_ASSERTS for it
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@271247 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1514,6 +1514,7 @@ template <class _Rp>
|
|||||||
void
|
void
|
||||||
promise<_Rp>::set_exception_at_thread_exit(exception_ptr __p)
|
promise<_Rp>::set_exception_at_thread_exit(exception_ptr __p)
|
||||||
{
|
{
|
||||||
|
_LIBCPP_ASSERT( __p != nullptr, "promise::set_exception_at_thread_exit: received nullptr" );
|
||||||
if (__state_ == nullptr)
|
if (__state_ == nullptr)
|
||||||
__throw_future_error(future_errc::no_state);
|
__throw_future_error(future_errc::no_state);
|
||||||
__state_->set_exception_at_thread_exit(__p);
|
__state_->set_exception_at_thread_exit(__p);
|
||||||
@@ -1649,6 +1650,7 @@ template <class _Rp>
|
|||||||
void
|
void
|
||||||
promise<_Rp&>::set_exception_at_thread_exit(exception_ptr __p)
|
promise<_Rp&>::set_exception_at_thread_exit(exception_ptr __p)
|
||||||
{
|
{
|
||||||
|
_LIBCPP_ASSERT( __p != nullptr, "promise::set_exception_at_thread_exit: received nullptr" );
|
||||||
if (__state_ == nullptr)
|
if (__state_ == nullptr)
|
||||||
__throw_future_error(future_errc::no_state);
|
__throw_future_error(future_errc::no_state);
|
||||||
__state_->set_exception_at_thread_exit(__p);
|
__state_->set_exception_at_thread_exit(__p);
|
||||||
|
|||||||
@@ -203,7 +203,7 @@
|
|||||||
<tr><td><a href="http://cplusplus.github.io/LWG/lwg-defects.html#2495">2495</a></td><td>There is no such thing as an Exception Safety element</td><td>Kona</td><td>Complete</td></tr>
|
<tr><td><a href="http://cplusplus.github.io/LWG/lwg-defects.html#2495">2495</a></td><td>There is no such thing as an Exception Safety element</td><td>Kona</td><td>Complete</td></tr>
|
||||||
<tr><td></td><td></td><td></td><td></td></tr>
|
<tr><td></td><td></td><td></td><td></td></tr>
|
||||||
<tr><td><a href="http://cplusplus.github.io/LWG/lwg-defects.html#2192">2192</a></td><td>Validity and return type of <tt>std::abs(0u)</tt> is unclear</td><td>Jacksonville</td><td></td></tr>
|
<tr><td><a href="http://cplusplus.github.io/LWG/lwg-defects.html#2192">2192</a></td><td>Validity and return type of <tt>std::abs(0u)</tt> is unclear</td><td>Jacksonville</td><td></td></tr>
|
||||||
<tr><td><a href="http://cplusplus.github.io/LWG/lwg-defects.html#2276">2276</a></td><td>Missing requirement on <tt>std::promise::set_exception</tt></td><td>Jacksonville</td><td></td></tr>
|
<tr><td><a href="http://cplusplus.github.io/LWG/lwg-defects.html#2276">2276</a></td><td>Missing requirement on <tt>std::promise::set_exception</tt></td><td>Jacksonville</td><td>Complete</td></tr>
|
||||||
<tr><td><a href="http://cplusplus.github.io/LWG/lwg-defects.html#2296">2296</a></td><td><tt>std::addressof</tt> should be <tt>constexpr</td><td>Jacksonville</td><td>Complete (Clang Only)</td></tr>
|
<tr><td><a href="http://cplusplus.github.io/LWG/lwg-defects.html#2296">2296</a></td><td><tt>std::addressof</tt> should be <tt>constexpr</td><td>Jacksonville</td><td>Complete (Clang Only)</td></tr>
|
||||||
<tr><td><a href="http://cplusplus.github.io/LWG/lwg-defects.html#2450">2450</a></td><td><tt>(greater|less|greater_equal|less_equal)<void></tt> do not yield a total order for pointers</td><td>Jacksonville</td><td></td></tr>
|
<tr><td><a href="http://cplusplus.github.io/LWG/lwg-defects.html#2450">2450</a></td><td><tt>(greater|less|greater_equal|less_equal)<void></tt> do not yield a total order for pointers</td><td>Jacksonville</td><td></td></tr>
|
||||||
<tr><td><a href="http://cplusplus.github.io/LWG/lwg-defects.html#2520">2520</a></td><td>N4089 broke initializing <tt>unique_ptr<T[]></tt> from a <tt>nullptr</tt></td><td>Jacksonville</td><td></td></tr>
|
<tr><td><a href="http://cplusplus.github.io/LWG/lwg-defects.html#2520">2520</a></td><td>N4089 broke initializing <tt>unique_ptr<T[]></tt> from a <tt>nullptr</tt></td><td>Jacksonville</td><td></td></tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user