problem in using bind2nd in gcc 3.0.4

Srinivasan Vaikundaramanujam svaikund@cisco.com
Tue Jan 28 06:11:00 GMT 2003


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



More information about the Libstdc++ mailing list