Boost logo

Boost Users :

From: Olaf Peter (ope-devel_at_[hidden])
Date: 2008-02-28 12:52:11


Hi,

this test file doesn't compile, but why?

$ LANG=en g++ bind.cpp -o bind && ./bind
/usr/include/boost/bind.hpp: In member function 'R boost::_bi::list2<A1,
A2>::operator()(boost::_bi::type<R>, F&, A&, long int) [with R = int, F
= Foo, A = boost::_bi::list2<const char*&, const int&>, A1 =
boost::arg<1> (*)(), A2 = boost::arg<2> (*)()]':
/usr/include/boost/bind/bind_template.hpp:89: instantiated from
'typename boost::_bi::result_traits<R, F>::type boost::_bi::bind_t<R, F,
L>::operator()(A1&, const A2&) [with A1 = const char*, A2 = int, R =
int, F = Foo, L = boost::_bi::list2<boost::arg<1> (*)(), boost::arg<2>
(*)()>]'
bind.cpp:22: instantiated from here
/usr/include/boost/bind.hpp:278: error: void value not ignored as it
ought to be

Thanks,
Olaf




Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net