c++.beta - class template specialization: already defined
-
Christof Meerwald
(27/27)
Jun 15 2003
template
template<class T>
struct B
{
static const int val = sizeof(T);
};
template <int i>
struct A;
template <>
struct A<B<unsigned char>::val>;
template <>
struct A<B<unsigned short>::val>;
template<int i>
struct A
{ };
template<>
struct A<B<unsigned char>::val>
{ };
template<>
struct A<B<unsigned short>::val>
// Error: 'A' is already defined
{ };
Extracted from Boost's crc library.
bye, Christof
--
http://cmeerw.org JID: cmeerw jabber.at
mailto cmeerw at web.de
...and what have you contributed to the Net?
Jun 15 2003








Christof Meerwald <cmeerw web.de>