Title
Dependent noexcept and function type-dependence
Status
c++17
Section
13.8.3.4 [temp.dep.constexpr]
Submitter
Maxim Kartashev

Created on 2016-06-23.00:00:00 last changed 81 months ago

Messages

Date: 2017-02-15.00:00:00

Proposed resolution (February, 2017):

Add the following as a new bullet following 13.8.3.2 [temp.dep.type] bullet 9.6:

  • ...

  • an array type whose element type is dependent or whose bound (if any) is value-dependent,

  • a function type whose exception specification is value-dependent,

  • ...

Date: 2017-02-15.00:00:00

[Adopted at the February/March, 2017 meeting.]

Consider:

  template <bool B> struct A
  {
    void static foo() noexcept(B);// only dependent on B

    void bar(struct X* x) {
      buz<noexcept(foo)>(x); // dependent call through explicit template arguments?
    }
  }; 

A value-dependent exception specification ought to make the type of the corresponding function type-dependent.

History
Date User Action Args
2018-02-27 00:00:00adminsetmessages: + msg6170
2018-02-27 00:00:00adminsetstatus: open -> c++17
2016-06-23 00:00:00admincreate