Boost logo

Boost Users :

From: Maximilian W. (wilson.max_at_[hidden])
Date: 2004-08-31 16:14:40


On Tue, 31 Aug 2004 13:55:23 -0700, Delfin Rojas <drojas_at_[hidden]> wrote:
> What errors do you get?
>
> -delfin

Whoops! I forgot to paste in the error text.

/users/ugrad/m/mdw45/465/project1/src/project1.cpp:26: error: no match
for 'operator<<' in 'boost::lambda::operator<<(A&, const
boost::lambda::lambda_functor<Arg>&) [with A = std::ostream, Arg =
boost::lambda::placeholder<1>]((+boost::lambda::<unnamed>::_1)) <<
std::endl '
*/users/user2/ugrad/m/mdw45/lib/format.h:126: error: candidates are:
std::ostream& operator<<(std::ostream&, const format&)

It says there's no operator for the expression <<(cout, _1). To my
understanding, that should return a one-argument lambda functor which
outputs its argument on cout. Was this capability removed or am I
missing some header files?

(I'll tell you if I solve it before you do.)

Max Wilson

-- 
Sometimes I think decisions through, weigh the consequences, decide
it is not a good idea, but blind myself and make it anyway. I do not
think this is a good thing to do, but it might be. Humans are
endowed with both reason and emotion for a reason.
   -Tara Greenwood

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