|
Boost : |
Subject: Re: [boost] [TypeErasure] Forward constructors and binded types
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2012-07-19 16:41:12
Le 19/07/12 21:17, Steven Watanabe a écrit :
> AMDG
>
> 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:
>
> http://steven_watanabe.users.sourceforge.net/type_erasure/libs/type_erasure/doc/html/boost/type_erasure/binding.html
>
> and
>
> http://steven_watanabe.users.sourceforge.net/type_erasure/libs/type_erasure/doc/html/boost/type_erasure/binding_of.html
>
> As for how it's used, a number of functions
> take an optional binding argument such as
> http://steven_watanabe.users.sourceforge.net/type_erasure/libs/type_erasure/doc/html/boost/type_erasure/call.html
>
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.
Vicente
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk