Boost logo

Boost Users :

From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-08-02 11:55:42


AMDG

Tim Hockin wrote:
> I use a few lambdas in my application. Simple ones like (_1 + 1) work
> fine. However, when I use this next one, the compile blows up on me
> and produces a huge and indecipherable error:
> if_then_else_return(_1 == 0, 64, _1)
>

This is a bug in Lambda. Use

        int y = call_this(if_then_else_return(_1 == 0, 50,
ll_static_cast<const int>(_1)));

In Christ,
Steven Watanabe


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