E
er
hello,
here's my problem:
struct A{};
struct B{};
struct T{};
struct outer{
template<typename U>
struct inner{
typedef A type;
};
//specialization inside outer's scop has compile error:
//explicit specialization in non-namespace scope ‘struct outer’|
//using gcc version 4.2.3
};
//expected unqualified-id before ‘{’ token|
template<>
outer::inner<T>{
typedef B type;
};
thanks.
here's my problem:
struct A{};
struct B{};
struct T{};
struct outer{
template<typename U>
struct inner{
typedef A type;
};
//specialization inside outer's scop has compile error:
//explicit specialization in non-namespace scope ‘struct outer’|
//using gcc version 4.2.3
};
//expected unqualified-id before ‘{’ token|
template<>
outer::inner<T>{
typedef B type;
};
thanks.