This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: problem in using bind2nd in gcc 3.0.4
- From: Srinivasan Vaikundaramanujam <svaikund at cisco dot com>
- To: Benjamin Kosnik <bkoz at redhat dot com>, libstdc++ at gcc dot gnu dot org
- Date: Tue, 28 Jan 2003 11:41:38 +0530
- Subject: Re: problem in using bind2nd in gcc 3.0.4
- References: <200301271807.h0RI77802150@fillmore.constant.com>
Hi Benjamin,
I am not sure of the cause of the problem but the problem got solved
once const int is replaced with int in the argument types of
binary_function<> i.e. changed binary_function<const int,const
int,bool> to binary_function<int,int,bool>.
but the error message is misleading as it complains that it has been
already declared somewhere.
Srini
Benjamin Kosnik wrote:
> It looks like DR 109 is causing your problem...
>
> stl_function.h:405
>
> #ifdef _GLIBCPP_RESOLVE_LIB_DEFECTS
> //109. Missing binders for non-const sequence elements
> typename _Operation::result_type
> operator()(typename _Operation::first_argument_type& __x) const {
> return op(__x, value);
> }
> #endif
>
> -benjamin