Boost logo

Boost :

Subject: Re: [boost] [TypeErasure] Forward constructors and binded types
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2012-07-23 16:05:06


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> >

In Christ,
Steven Watanabe

Boost list run by bdawes at, gregod at, cpdaniel at, john at