Topic: export in template declarations
Author: =?ISO-8859-1?Q?=D8ystein_S=F8reide?= <oystein@sisyfos.zoo.uib.no>
Date: 2000/01/11 Raw View
In "The C++ programming language 3rd ed" by Bjarne Strostrup, the keyword
export is defined, in the construction:
template declaration:
[export] template < template-parameter-list > declaration
MSVC++6.0 does not handle the export keyword, but is the word 'export' a part of the standard ?
Hope that anybody can help me.
ystein S reide
[ 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: Steve Clamage <stephen.clamage@sun.com>
Date: 2000/01/11 Raw View
=D8ystein S=F8reide wrote:
>
> In "The C++ programming language 3rd ed" by Bjarne Strostrup, the keyword
> export is defined, in the construction:
>
> template declaration:
> [export] template < template-parameter-list > declaration
>
> MSVC++6.0 does not handle the export keyword, but is the word 'export'
> a part of the standard ?
The keyword "export" is part of standard C++. I don't know of a compiler
that fully implements the semantics. Some compilers give you most
of the effect of "export" without requiring the use of the keyword.
Some compilers recognize "export" as a keyword without giving it any
special meaning. That is, you would get the same result whether or
not you attach "export" to a template definition, and you would get
an error message if you used "export" where it is not allowed.
--
Steve Clamage, stephen.clamage@sun.com
[ 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 ]