Boost logo

Boost :

Subject: Re: [boost] [TypeErasure] Forward constructors and binded types
From: Eric Niebler (eric_at_[hidden])
Date: 2012-07-23 13:56:00

On 7/19/2012 1:41 PM, Vicente J. Botet Escriba wrote:
> Le 19/07/12 21:17, Steven Watanabe a écrit :
>> On 07/18/2012 11:43 AM, Vicente Botet wrote:
>>> Well, I think I have understood how this can work.
>>> get<1>(t1) returns an any that has a binding
>>> std::vector<double>,int,double
>>> and is this binding that allows to associate _a to std::vector<double>.
>> Exactly.
>>> I 'd appreciate if the documentation clarifies what these bindings
>>> are, how they are built built and used.
>> You mean like:
>> and
>> As for how it's used, a number of functions
>> take an optional binding argument such as
> No, this is good, but it is reference documentation. I was thinking more
> as part of the tutorial, what is the concept behind, why it is needed, ...
> IMO the current tutorial hides this major concept of the library.

+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'd also like to second the call for reference docs on the get function.

Eric Niebler
BoostPro Computing

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