This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problem in using bind2nd in gcc 3.0.4


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]