bad_weak_ptr::what()
overspecifiedSection: 20.3.2.1 [util.smartptr.weak.bad] Status: C++17 Submitter: Jonathan Wakely Opened: 2014-03-27 Last modified: 2017-07-30
Priority: Not Prioritized
View all issues with C++17 status.
Discussion:
[util.smartptr.weakptr] p2 requires bad_weak_ptr
to return precisely
the string "bad_weak_ptr"
.
bad_weak_ptr
consistent with other
exception types such as bad_alloc
and bad_cast
.
If accepted, the P/R for issue 2233, which currently uses similar
wording to bad_weak_ptr
, could be updated appropriately.
[2014-03-27 Library reflector vote]
The issue has been identified as Tentatively Ready based on six votes in favour.
Proposed resolution:
This wording is relative to N3936.
Edit [util.smartptr.weakptr]:
bad_weak_ptr() noexcept;-2- Postconditions:
what()
returnsan implementation-defined NTBS."bad_weak_ptr"