Boost logo

Boost :

Subject: [boost] [TypeErasure] Forward constructors and binded types
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2012-07-18 02:29:12


Hi,,

In the example from the doc

     typedef mpl::vector<
         copy_constructible<_a>,
         copy_constructible<_b>,
         copy_constructible<_c>,
         constructible<_a(const _b&, const _c&)>
> construct;

     std::vector<double> vec;
     int i = 10;
     double d = 2.5;
     tuple<construct, _a&, _b, _c> t(vec, i, d);
     any<construct, _a> v(get<1>(t), get<2>(t));

I don't see which type is constructed and stored in v and how this type
is given. That is I don't see how _a is binded. Could you help me?

Best,
Vicente


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk