Topic: Local classes as template arguments
Author: "Philippe A. Bouchard" <philippeb@videotron.ca>
Date: Wed, 6 Feb 2002 15:45:05 GMT Raw View
type `main()::T' composed from a local class is not a valid
template-argument
Why not?
---
[ 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://www.research.att.com/~austern/csc/faq.html ]
Author: comeau@panix.com (Greg Comeau)
Date: Wed, 6 Feb 2002 17:15:13 GMT Raw View
In article <%r088.25033$oa.1986682@weber.videotron.net>,
Philippe A. Bouchard <philippeb@videotron.ca> wrote:
>type `main()::T' composed from a local class is not a valid
>template-argument
>
>Why not?
Because although types local to a function are scoped, they
can't be written in that manner.
--
Greg Comeau GA BETA:4+ New Windows Backends PLUS 'export' beta online!
Comeau C/C++ ONLINE ==> http://www.comeaucomputing.com/tryitout
World Class Compilers: Breathtaking C++, Amazing C99, Fabulous C90.
Comeau C/C++ with Dinkumware's Libraries... Have you tried it?
---
[ 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://www.research.att.com/~austern/csc/faq.html ]