Title
Return clause mentions undefined "type()"
Status
nad editorial
Section
[func.wrap.func.targ]
Submitter
Daniel Krügler

Created on 2007-02-03.00:00:00 last changed 164 months ago

Messages

Date: 2010-10-21.18:28:33

[ Pete: Agreed. It's editorial, so I'll fix it. ]

Date: 2010-10-21.18:28:33

Proposed resolution:

Change [func.wrap.func.targ], p4:

Returns: If type() target_type() == typeid(T) && typeid(T) != typeid(void), a pointer to the stored function target; otherwise a null pointer.

Date: 2007-02-03.00:00:00

[func.wrap.func.targ], p4 says:

Returns: If type() == typeid(T), a pointer to the stored function target; otherwise a null pointer.

  1. There exists neither a type, a typedef type, nor member function type() in class template function nor in the global or std namespace.
  2. Assuming that type should have been target_type(), this description would lead to false results, if T = cv void due to returns clause [func.wrap.func.targ], p1.
History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg3284
2010-10-21 18:28:33adminsetmessages: + msg3283
2007-02-03 00:00:00admincreate