D
Davide Pippa
Hi!
I'm trying to compile the code above code (actually a similar one...),
and I get this error (with gcc 3.2.2) :
trick_1.cpp:16: template parameters not used in partial
specialization:
trick_1.cpp:16: `P_args'
Does anybody spot the error ? I know probably this code is invalid,
but I cannot see the right syntax... could also someone point me any
pointer on the web to learn template syntax in a quite deep manner ? I
encountered quite frequently blocking points like that for me...
Thanks anybody !
Bye!
Pyper.
/*** begin code ***/
template <class P_args> struct Thing {
struct SubThing {
template <unsigned int x> struct Func {
enum { value = 0 };
};
};
};
template <class P_args> struct Thing<P_args>::SubThing::Func<1> {
enum { value = 2 };
};
int main(int argc,char **argv) {
}
/*** end code ***/
I'm trying to compile the code above code (actually a similar one...),
and I get this error (with gcc 3.2.2) :
trick_1.cpp:16: template parameters not used in partial
specialization:
trick_1.cpp:16: `P_args'
Does anybody spot the error ? I know probably this code is invalid,
but I cannot see the right syntax... could also someone point me any
pointer on the web to learn template syntax in a quite deep manner ? I
encountered quite frequently blocking points like that for me...
Thanks anybody !
Bye!
Pyper.
/*** begin code ***/
template <class P_args> struct Thing {
struct SubThing {
template <unsigned int x> struct Func {
enum { value = 0 };
};
};
};
template <class P_args> struct Thing<P_args>::SubThing::Func<1> {
enum { value = 2 };
};
int main(int argc,char **argv) {
}
/*** end code ***/