Topic: Defect Report: unary_negate and binary_negate struct or class?


Author: "Dale Riley" <dale.dev@aon.at>
Date: 10 Nov 01 06:34:25 GMT
Raw View
 [Moderator's note: this defect report has been
 forwarded to the C++ committee. -moderator.]

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

Proposed resolution:

Change the synopsis to reflect the useage in 20.3.5

- Dale
-----------------------
Dale Riley
dale.dev (at) aon.at
---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html                ]