Boost logo

Boost Users :

Subject: [Boost-users] [Lambda] result_of support bug for placeholders?
From: Michel MORIN (mimomorin_at_[hidden])
Date: 2011-01-16 19:32:55


Hi,

Let's we have
    using boost::lambda::_1;
    typedef boost::remove_reference<decltype(_1)>::type _1_type;

Then,
decltype(_1(1)) (and std::result_of<_1_type(int)>::type) is 'int const&',
but boost::tr1_result_of<_1_type(int)>::type is 'int&".

Is this a bug?

Regards,
Michel


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