Boost logo

Boost :

Subject: Re: [boost] About all these metaprogramming libraries
From: Peter Dimov (lists_at_[hidden])
Date: 2017-03-19 20:29:00


Bruno Dutra wrote:
> > It would be possible in principle to make the algorithms take
> > mpl::vector and return mp_list, I suppose.
>
> You forgot to take into account that algorithms such as mpl::insert and
> mpl::erase return proxies that inherit from vectors and don't expose the
> elements in their types signatures, while being themselves valid instances
> of a Vector. This is the real deal breaker.

On MSVC, insert/erase return numbered vectors, but on g++ and clang++,
you're right, they return some weird v_item sequences.

What is our use case here though? From where would those mpl types come?


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