Defect Report [N2134]: Two unspecified function comparators in [function.objects]
The header <functional> synopsis in [function.objects]-20.5/2
contains the following two free comparison operator templates
for the function class template
template<class Function1, class Function2>
void operator==(const function<Function1>&, const
function<Function2>&);
template<class Function1, class Function2>
void operator!=(const function<Function1>&, const
function<Function2>&);
which are nowhere described.
I assume that they are relicts before the corresponding two
private and undefined member templates in the function
template (see 20.5.14.2 and 20.5.14.2.6) have been introduced.
The original free function templates should be removed, because
using an undefined entity would lead to an ODR violation of the
user.
Proposed resolution:
Remove the above mentioned two function templates from
the header <functional> synopsis (20.5/2)
Greetings from Bremen,
Daniel Kr?gler
---
[ 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.comeaucomputing.com/csc/faq.html ]