Boost logo

Boost :

From: Mac Murrett (mmurrett_at_[hidden])
Date: 2002-02-18 12:50:02


Herb, other Boosters,

On Monday, February 18, 2002, at 03:11 AM, Herb Sutter wrote:

> Pardon if this has already been discussed on the list, but I'd
> like your
> feedback on this question: "What are the most needed or desired
> features in
> C++ for modern library writing in general and Boost in particular?"
[snip]
> What else should be on the list?

I would love to be able to specify an archetype for my template
parameters. For example:

template<assignable T>
class vector
{
...
};

The compiler then can generate an error on vector<auto_ptr<int> >
that makes sense.

This would solve most of the common complaints that novices have
when learning to use templates.

Mac Murrett.


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