|
Boost : |
Subject: Re: [boost] phoenix::bind
From: Joel de Guzman (joel_at_[hidden])
Date: 2008-10-02 00:25:25
Joel de Guzman wrote:
> {
> int x = 5;
> int r = bind(_1, _2)(unlambda(_1), x);
> BOOST_TEST(x == 5);
----------^^^^^^^^^^^^^^^^^^
Oops:
BOOST_TEST(r == 5);
Regards,
-- Joel de Guzman http://www.boostpro.com http://spirit.sf.net
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk