Boost logo

Boost :

Subject: Re: [boost] [containers] remarks and questions
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2011-08-12 06:22:05


El 12/08/2011 0:40, Pierre Morcello escribió:
> Hi Ion,
>
> Thanks for the detailed answer.
>
>>> (Me) There are some examples of containers requiring the value_type
>>> to support
>>> only the "defaut constructor + a swap() function".
>>> This is a concept I would really appreciate to see in
>>> boost.containers.
>>> In that case, I would very happily use this library.
>>> Otherwise I think I will stick with other containers classes.
>
>> Yes, default-contruct only types are supported in many operations, just
>> like C++11 requires (say, resize(), emplace()...). I'll add this
>> requirement to each function description.
>
> Maybe I was not clear. What I meant was the same as the dlibc++ containers :
> being able to use a class like in the following example.

It's a bug, Boost.Container should support it. It works for list and
other containers but not for vector. I plan to support non-copyable and
non-movable types, as the new standard requires it for several operations.

Best,

Ion


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