From -945008260320173398
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,69b769f6f54d9efb,start
X-Google-Attributes: gidf78e5,public
From: "Andrei Alexandrescu" <alexandrescua@micromodeling.com>
Subject: Template specialization inside a template class
Date: 1999/02/26
Message-ID: <36d718c0.0@10.1.1.65>#1/1
X-Deja-AN: 448950140
X-NNTP-Posting-Host: 10.1.1.203
Approved: stephen.clamage@sun.com (comp.std.c++)
X-UID: 0000000001
X-Status: $$$T
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
X-Trace: 26 Feb 1999 16:57:20 -0500, 10.1.1.203
Organization: -
Newsgroups: comp.std.c++
Originator: clamage@taumet


Is the following legal?

template <class T, class U = int>
class A
{
    template <class V> class B
    {
        ...
    };
    template <> class B<T>
    {
        ...
    };
    ...
};

Andrei



[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]




