This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of C++14 status.

2346. integral_constant's member functions should be marked noexcept

Section: 19.15.3 [meta.help] Status: C++14 Submitter: Stephan T. Lavavej Opened: 2013-11-05 Last modified: 2017-07-16

Priority: 0

View all other issues in [meta.help].

View all issues with C++14 status.

Discussion:

Obvious.

[Issaquah 2014-02-11: Move to Immediate]

Proposed resolution:

This wording is relative to N3797.

  1. Edit 19.15.3 [meta.help] as indicated:

    namespace std {
      template<class T, T v>
      struct integral_constant {
        static constexpr T value = v;
        typedef T value_type;
        typedef integral_constant<T,v> type;
        constexpr operator value_type() const noexcept { return value; }
        constexpr value_type operator()() const noexcept { return value; }
      };
      […]
    }