Movatterモバイル変換


[0]ホーム

URL:


Issue 1946 - WG21 CWG Issues
Title
exception-specifications vs pointer dereference
Status
cd4
Section
14.5 [except.spec]
Submitter
Mike Miller

Created on2014-06-21.00:00:00 last changed109 months ago

Messages

msg5564 (view)
Date: 2015-05-25.00:00:00

Additional note, May, 2015:

See alsoissue 92 and EWG issue169.

msg5108 (view)
Date: 2015-10-15.00:00:00

[Adopted at the October, 2015 meeting as P0012R1.]

The resolution ofissue 1351 resultsin the following:

  void (*p)() throw(int);  void (&r)() throw(int) = *p;  // ill-formed

The reason is that the set of potential exceptions for anindirection is “any” instead of maintaining the knownpotential exceptions of the operand. It would seem to be reasonableto propagate the set in such cases.

A similar issue arises with function template argumentdeduction:

  template<typename T> T& f(T* p);  void (*p)() throw(int);  void (&r)() throw(int) = f(p);  // ill-formed

See also issues2010,1995,1975,and1798.

History
DateUserActionArgs
2017-02-06 00:00:00adminsetstatus: accepted -> cd4
2015-11-10 00:00:00adminsetstatus: open -> accepted
2015-05-25 00:00:00adminsetmessages: +msg5564
2014-06-21 00:00:00admincreate

[8]ページ先頭

©2009-2026 Movatter.jp