Boost logo

Boost :

Subject: Re: [boost] [TypeErasure] Forward constructors and binded types
From: Larry Evans (cppljevans_at_[hidden])
Date: 2012-07-19 07:08:56


On 07/18/12 01:29, Vicente J. Botet Escriba wrote:
> 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));
>
[snip]
The 1st attachment, composed from above, doesn't compile,
giving errors in 2nd attachment.

svn update shows:

  Updated to revision 79597.

How should the code be changed to allow compilation?

TIA.

-regards,
Larry





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