help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with std::binder1st


From: Guy Harrison
Subject: Re: Help with std::binder1st
Date: Fri, 27 Aug 2004 19:59:56 GMT
User-agent: KNode/0.7.7

E. Robert Tisdale wrote:

>          > cat main.cc
>          #include <functional>
> 
>          int main(int argc, char* argv[]) {
>            std::binder1st<std::not_equal_to<unsigned short int> >
>            ne_tot_unusable(std::not_equal_to<unsigned short int>(), 3);
>            return 0;
>            }
> 
>          > g++ -Wall -ansi -pedantic -o main main.cc
>          main.cc: In function `int main(int, char**)':
>          main.cc:5: error: type specifier omitted for parameter
>          main.cc:5: error: syntax error before numeric constant
> 
> Can anybody tell me what is wrond with this use of binder1st?

comp.lang.c++(.moderated) where, hopefully, you'll be informed "code is
good". Not my area but again, concur with Paul - fwiw, 3.4x compiles it.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]