help-gplusplus
[Top][All Lists]
Advanced

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

Help with std::binder1st


From: E. Robert Tisdale
Subject: Help with std::binder1st
Date: Mon, 23 Aug 2004 17:06:34 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040803

        > 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?


reply via email to

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