
On Fri, Mar 28, 2008 at 1:59 PM, Patrick Loney < Patrick.Loney@interactivets.com> wrote:
There are other classes that can't be used in containers such as scoped_ptr so there is precedent - stl containers aren't the be all and end all of software design.
Yes, well boost::noncopyable also prohibits something :-) The whole intent of nondynamic is to prohibit (or make difficult) dynamic allocation/pointer usage. Do you think boost::noncopyable has a valid purpose, but nondynamic is less useful?
All applications of noncopyable are clearly defined in my opinion. In case
of nondynamic it is not so.
If I declare a class as nondynamic I still probably can assume that it is
locally copyable. Isn't is so?
So this construct should be valid:
{ //local scope
std::vector