[Bug c++/66256] noexcept evaluation done before end of class

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Feb 14 11:04:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66256

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Michael Mehlich from comment #1)
> BTW: The header file could be fixed easily by adding std:: in front of these
> swap occurrences.

No, because that would only consider std::swap and not other functions that can
be found by ADL. That problem is solved for GCC 6 and later by using
__is_nothrow_swappable instead.


More information about the Gcc-bugs mailing list