Title
unary_negate and binary_negate: struct or class?
Status
nad editorial
Section
[function.objects]
Submitter
Dale Riley

Created on 2001-11-12.00:00:00 last changed 171 months ago

Messages

Date: 2010-10-21.18:28:33

[ CuraƧao: Since the language permits "struct", the LWG views this as NAD. They suggest, however, that the Project Editor might wish to make the change as editorial. ]

Date: 2010-10-21.18:28:33

Proposed resolution:

Change the synopsis to reflect the useage in [negators]

Date: 2010-10-21.18:28:33

[ Taken from comp.std.c++ ]

Date: 2001-11-12.00:00:00

In [function.objects] the header <functional> synopsis declares the unary_negate and binary_negate function objects as struct. However in [negators] the unary_negate and binary_negate function objects are defined as class. Given the context, they are not "basic function objects" like negate, so this is either a typo or an editorial oversight.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg2321
2010-10-21 18:28:33adminsetmessages: + msg2320
2010-10-21 18:28:33adminsetmessages: + msg2319
2001-11-12 00:00:00admincreate