Hi,
I've used BLL off an on for a while, but right now even the most basic
bind won't work. Two of the following three binds don't work for me, and
they are basically a copy if the bind examples... At this point I'm sure
I'm doing something incredibly stupid, so can someone set me straight?
#include <iostream>
#include "boost/lambda/lambda.hpp"
#include "boost/lambda/bind.hpp"
using namespace boost::lambda;
int g(int i) {std::cout << i< >, boost::tuples::tuple >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type> > >) (int)'
/Users/patrik/include/boost/lambda/detail/lambda_functors.hpp:137: note:
candidates are: typename T::sigboost::tuples::null_type::type
boost::lambda::lambda_functor<Base>::operator()() const [with T =
boost::lambda::lambda_functor_base >, boost::tuples::tuple >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type> >]
/Users/patrik/include/boost/lambda/detail/lambda_functors.hpp:145:
note: typename T::sig >::type
boost::lambda::lambda_functor<Base>::operator()(A&) const [with A = int,
T = boost::lambda::lambda_functor_base >, boost::tuples::tuple >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type> >]
junk.cc:11: error: no match for call to '(const
boost::lambda::lambda_functor >,
boost::tuples::tuple >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type> > >) (int)'
/Users/patrik/include/boost/lambda/detail/lambda_functors.hpp:137: note:
candidates are: typename T::sigboost::tuples::null_type::type
boost::lambda::lambda_functor<Base>::operator()() const [with T =
boost::lambda::lambda_functor_base >,
boost::tuples::tuple >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type> >]
/Users/patrik/include/boost/lambda/detail/lambda_functors.hpp:145:
note: typename T::sig >::type
boost::lambda::lambda_functor<Base>::operator()(A&) const [with A = int,
T = boost::lambda::lambda_functor_base >,
boost::tuples::tuple >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type> >]