Boost logo

Boost :

Subject: Re: [boost] Adding spirit::is_container to boost::traits
From: Rodrigo Madera (rodrigo.madera_at_[hidden])
Date: 2014-05-27 11:08:44


On Tue, May 27, 2014 at 11:28 AM, Felipe Magno de Almeida
<felipe.m.almeida_at_[hidden]> wrote:
> That traits is meant for users to specialize if they work with non-STL
> container types. It doesn't seem very appropriate for boost.traits
> because they can't deduce it in C++03 and in C++17 we will have
> concepts lite anyway.

I beg to differ.

The need to identify container types (be it STL or user defined types)
arises in some contexts. It would be very useful to have these in a
standard boost library like traits, and not (ab)using Spirit internals
for that.

To me, having is_container looks interesting for boost::traits.

Regards,
Madera


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