2346. integral_constant's member functions should be marked noexcept

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

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 21.3.4 [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; }
      };
      […]
    }