[Bug libstdc++/94811] Please make make_tuple noexcept when possible

glisse at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Apr 28 06:35:07 GMT 2020


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

Marc Glisse <glisse at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c++                         |libstdc++
           Severity|normal                      |enhancement

--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
Sure, it is possible, but isn't std::make_tuple mostly legacy at this point,
with CTAD you can just use std::tuple, which is noexcept already.

Each extra noexcept is one more chance to get things wrong, at least as long as
wg21 refuses noexcept(auto), although this particular case doesn't seem
particularly hard.


More information about the Gcc-bugs mailing list