Closed wg21bot closed 1 year ago
This rule seems to allow
template<class T,bool B> using get=T(*)() noexcept(B); struct A { template<class T> operator get<T,false>() const; }; auto *p=A().operator get<int,true>();
with p not being noexcept.
Proposed change:
Allow the original A to be (perhaps implicitly) noexcept(false) rather than allowing it and not P to be noexcept(true).
CWG2651
Accept with modifications. See CWG2651 for details.
This rule seems to allow
with p not being noexcept.
Proposed change:
Allow the original A to be (perhaps implicitly) noexcept(false) rather than allowing it and not P to be noexcept(true).