Boost logo

Boost Users :

From: Delfin Rojas (drojas_at_[hidden])
Date: 2004-12-01 18:49:36


Sure you can, just put boost::lambda before each thing. For example:

namespace bll = boost::lambda;
std::vector<int> vnNumbers(20);
int nNumber;
std::for_each(vnNumbers.begin(),
                  vnNumbers.end(),
                  bll::_1 = bll::var(nNumber)++);

-delfin

> -----Original Message-----
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-
> bounces_at_[hidden]] On Behalf Of Agoston Bejo
> Sent: Wednesday, December 01, 2004 12:27 PM
> To: boost-users_at_[hidden]
> Subject: [Boost-users] boost::lambda without 'use namespace'
>
> Hi all,
> is there a way to use the boost::lambda library without having to
> use boost::lambda;
> ?
> I would like to use lambda expressions in a header file, therefore without
> 'use'-ing the namespace.
>
> Thx,
> Agoston
>
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


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