Explicit specialization problem
Yogesh Kini
kini1982@postmaster.co.uk
Fri Nov 26 06:20:00 GMT 2004
Hi,
When I compile the below code using gcc 3.3 I get the errors as below.
But MS VC++ compiles it straight. Can any one please tell me what the problem is?
Thanks,
Yogesh
namespace xyz
{
template<class A, class B, class C>
class ABC
{
template<bool T>
struct M
{
float a,b,c;
};
template<>
struct M<true> -> Error here
{
int i,j,k;
};
};
};
main.cpp:59: error: enclosing class templates are not explicitly specialized
main.cpp:61: error: template parameters not used in partial specialization:
main.cpp:61: error: `A'
main.cpp:61: error: `B'
main.cpp:61: error: `C'
___________________________________________________
Meet other people who share your interests.
http://www.homemaster.net - Homemaster. Come Together. Online.
More information about the Gcc-help
mailing list