
I'm using bind with boost-1.33. I can't get a simple test to work: ----------- #include <boost/bind.hpp> int G (int a, int b, int c) { return a + b + c; } int main () { int x = boost::bind (G,_1, 4, 8)(2); } ----------- g++ -fsyntax-only -I../ -I../../src TestScale.cc TestScale.cc: In function βint main()β: TestScale.cc:14: error: no match for call to β(boost::_bi::bind_t<int, int (*)(int, int, int), boost::_bi::list3<boost::arg<1>, boost::_bi::value<int>, boost::_bi::value<int> > >) (int)β /usr/include/boost/bind/bind_template.hpp:17: note: candidates are: typename boost::_bi::result_traits<R, F>::type boost::_bi::bind_t<R, F, L>::operator()() [with R = int, F = int (*)(int, int, int), L = boost::_bi::list3<boost::arg<1>, boost::_bi::value<int>, boost::_bi::value<int> >] /usr/include/boost/bind/bind_template.hpp:23: note: typename boost::_bi::result_traits<R, F>::type boost::_bi::bind_t<R, F, L>::operator()() const [with R = int, F = int (*)(int, int, int), L = boost::_bi::list3<boost::arg<1>, boost::_bi::value<int>, boost::_bi::value<int> >] /usr/include/boost/bind/bind_template.hpp:29: note: typename boost::_bi::result_traits<R, F>::type boost::_bi::bind_t<R, F, L>::operator()(A1&) [with A1 = int, R = int, F = int (*)(int, int, int), L = boost::_bi::list3<boost::arg<1>, boost::_bi::value<int>, boost::_bi::value<int> >] /usr/include/boost/bind/bind_template.hpp:35: note: typename boost::_bi::result_traits<R, F>::type boost::_bi::bind_t<R, F, L>::operator()(A1&) const [with A1 = int, R = int, F = int (*)(int, int, int), L = boost::_bi::list3<boost::arg<1>, boost::_bi::value<int>, boost::_bi::value<int> >]