Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-06-02 08:29:45


I notice bind() has provisions for wacky things like microsoft calling
conventions, but what about good-ol' extern "C"?

I foolishly tried this on KCC on OSF:

          std::binary_search(
              &names[0]
              , names + sizeof(names)/sizeof(*names)
              , name
              , bind<bool>(std::less<int>(), bind(std::strcmp,_1,_2), 0)
              );

...and of course it failed because of std::strcmp.

At least this should be addressed in the FAQ, I think.

-Dave

+---------------------------------------------------------------+
                  David Abrahams
      C++ Booster (http://www.boost.org) O__ ==
      Pythonista (http://www.python.org) c/ /'_ ==
  resume: http://users.rcn.com/abrahams/resume.html (*) \(*) ==
          email: david.abrahams_at_[hidden]
+---------------------------------------------------------------+


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk