Topic: specialization syntax
Author: "T.Yoshida" <yoshida_t@giw.khi.co.jp>
Date: 1999/10/04 Raw View
Is the old ARM way of defining the template specialization:
template <class T> struct X;
struct X<int> {...};
still valid under the current standard?
I believe there are still many source codes which contain this construct.
How do the major C++ compilers out there handle them?
-----------------------------------------------------------------
Tsutomu Yoshida
Minokamo, Japan
---
[ 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 ]
Author: "Darin Adler" <darin@bentspoon.com>
Date: 1999/10/04 Raw View
T. Yoshida <yoshida_t@giw.khi.co.jp> wrote:
> Is the old ARM way of defining the template specialization:
>
> template <class T> struct X;
> struct X<int> {...};
>
> still valid under the current standard?
No.
> I believe there are still many source codes which contain this construct.
> How do the major C++ compilers out there handle them?
Many compilers still accept the old syntax without warning or error
messages.
-- Darin
[ 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 ]