
Ion GaztaƱaga wrote:
Daniel James wrote:
Does that mean you're not working on it anymore?
No, I'm working on it. Right now writing some Quickbook documentation. But I have a question on perfect forwarding: has anybody implemented perfect forwarding using boost preprocessor?
I mean something that generates a call with all the combinations of const and non-const references:
function() function(const T0 &t0) function(T0 &t0) function(const T0 &t0, const T1 &t1) function(const T0 &t0, T1 &t1) function(T0 &t0, const T1 &t1) function(T0 &t0, T1 &t1) //....
I would like to add this to the library to have a good "forward" emulation and I really don't know how to use Boost.Preprocessor to generate such thing. Any help is appreciated.
It's not hard to add with BOOST_PP_SEQ_FOR_EACH_PRODUCT, as done here: http://lists.boost.org/Archives/boost/att-105224/01-part But please make it optional and in a separate header. It's very compile-time expensive. -- Eric Niebler BoostPro Computing http://www.boostpro.com