Section: 22.10.17.3.6 [func.wrap.func.targ] Status: NAD Editorial Submitter: Daniel Krügler Opened: 2007-02-03 Last modified: 2016-01-28
Priority: Not Prioritized
View all other issues in [func.wrap.func.targ].
View all issues with NAD Editorial status.
Discussion:
22.10.17.3.6 [func.wrap.func.targ], p4 says:
Returns: If
type() == typeid(T)
, a pointer to the stored function target; otherwise a null pointer.
type
, nor member
function type()
in class template function nor in the global or
std
namespace.
type
should have been target_type()
,
this description would lead to false results, if T = cv
void
due to returns clause 22.10.17.3.6 [func.wrap.func.targ], p1.
Proposed resolution:
Change 22.10.17.3.6 [func.wrap.func.targ], p4:
Returns: If
, a pointer to the stored function target; otherwise a null pointer.
type()target_type() == typeid(T) && typeid(T) != typeid(void)
[ Pete: Agreed. It's editorial, so I'll fix it. ]