C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: Article: allocators...exceptions...new/delete [reply to:

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language, library and standards
View previous topic :: View next topic  
Author Message
James Kuyper
Guest





PostPosted: Fri Jul 18, 2003 8:29 pm    Post subject: Re: Article: allocators...exceptions...new/delete [reply to: Reply with quote



[email]dhruvbird (AT) gmx (DOT) net[/email] (Dhruv Matani) wrote in message news:<1058347888.3149.18.camel (AT) home (DOT) free>...
Quote:
On Sat, 12 Jul 2003 09:24:06 -0400, Richard Smith wrote:

"Dhruv" <dhruvbird (AT) gmx (DOT) net> wrote in message
news:pan.2003.07.10.18.19.19.500436 (AT) gmx (DOT) net...
On Tue, 08 Jul 2003 02:32:22 +0000, Dhruv wrote:
....
If you want to do

template <class T> class my_allocator;
std::vector< int, my_allocator > v;

it is not OK.

I haven't quite understood what you're trying to say here, and why won't
the 2nd eg. work.

The second template argument to any of the standard container classes
is a type, not a template name. my_allocator is a template.
my_allocator<T> for a given value of T, is a type.

....
Quote:
Now, it would be great if this would work:

#include <memory
#include #include
template