$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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]
+---------------------------------------------------------------+