Boost logo

Boost Users :

From: Bob Quampen (0377521021_at_[hidden])
Date: 2007-02-11 16:24:42


First, sorry for this total newbie question,
i'm trying to do something like this:

std::for_each
        (
                std::istream_iterator<std::string>(ss),
                std::istream_iterator<std::string>(),
                boost::lambda::if_then
                (
                        !(boost::lambda::bind(&std::string::substr, boost::lambda::_1, 0, 1) ==
_ignore) &&
                                !boost::lambda::bind(&std::string::empty, boost::lambda::_1),

                        (boost::lambda::bind(&std::string::find, boost::lambda::_1, _ignore),
// compiler complains here

---------------------------------<snip>----------------------------------------------------------------------

i'm getting the following error:

Error 23 error C2784: 'const
boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::action<3,boost::lambda::function_action<3,T>>,detail::bind_tuple_mapper<const
Arg1,const Arg2,const Arg3>::type>> boost::lambda::bind(const Arg1 &,const
Arg2 &,const Arg3 &)' : could not deduce template argument for 'overloaded
function type' from 'overloaded function type'

am i not supplying the correct amount of parameters to the find method?

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

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