Boost logo

Boost :

Subject: Re: [boost] [density] new library
From: Larry Evans (cppljevans_at_[hidden])
Date: 2016-06-13 10:29:57


On 06/13/2016 06:31 AM, Thijs van den Berg wrote:
> Hi Giuseppe,
>
> I'm still hoping to see a strongly typed C++ heterogeneous container that
> doesn't enforce base classes on elements,

By "base class on elements" do you mean something like the
multiple inheritance method as described in mitchnull's reply
here:

http://stackoverflow.com/questions/4041447/how-is-stdtuple-implemented#answer-10869923

IOW, that method muliply inherits from

   TupleLeaf<I, TI>, for I=0...sizeof...(T)-1

for:

template<typename... T>
class PseudoTuple
;

If that's what you mean, then could you explain the disadvantage
of this method vs some other method?

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