Boost logo

Boost Users :

Subject: Re: [Boost-users] [lambda] Should the code compile?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-12-30 11:51:01


AMDG

Max wrote:
> I have the following simple code, but doesn't get compiled:
>
> #define DECLARE_PTR_AUTO_DELETOR_CONDITIONAL(CLASS, VAR_PTR, CONDITION)\
> boost::scoped_ptr auto__deletor__for__ ## VAR_PTR (\
> boost::lambda::ret(boost::lambda::if_then_else(_1,\
> VAR_PTR, static_cast(0)))(static_cast(CONDITION)))
>

That's not the correct syntax for static_cast

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