Boost logo

Boost :

Subject: Re: [boost] [TypeErasure] Forward constructors and binded types
From: Larry Evans (cppljevans_at_[hidden])
Date: 2012-07-23 16:17:52


On 07/23/12 15:05, Steven Watanabe wrote:
> AMDG
>
> On 07/23/2012 10:56 AM, Eric Niebler wrote:
>>
>> +1. For the record, I got hung up in the tutorial in exactly the same
>> place as the OP. Had there been a more extensive description of tuple,
>> why it's needed, and a who-knows-what-and-when about the different
>> objects in play -- including the any's returned by get -- it would have
>> been much easier.
>>
>
> I've changed the example to show how
> to do this without tuple first. The
> key to understanding this is that
> tuple<requirements, _a, _b>
> is just shorthand for creating the
> anys with an
> mpl::map<mpl::pair<_a, int*>,
> mpl::pair<_b, int> >
>
Another example of demonstrating that the tuple
is shorthand is attached to:

http://article.gmane.org/gmane.comp.lib.boost.devel/232953

HTH.

-Larry


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