
24 Jan
2005
24 Jan
'05
8:41 p.m.
David Abrahams wrote:
"John Maddock" <john@johnmaddock.co.uk> writes:
1) Does not inherit from std::unary_function or std::binary_function when it should (as per the TR)?
Does the tr really specify that inheritance rather than simply that it supply the nested typedefs??! I smell a defect!
3.5/2: The simple call wrapper shall be derived from std::unary_function<cv T*, Ret > when pm is a pointer to member function with cv-qualifier cv and taking no arguments, where Ret is pm's return type. 3.5/3: The simple call wrapper shall be derived from std::binary_function<cv T*, T1, Ret > when pm is a pointer to member function with cv-qualifier cv and taking one argument of type T1, where Ret is pm's return type. -cd