
19 Mar
2017
19 Mar
'17
8:29 p.m.
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?