I have following code
template <int b> class a {
};
template < int b, template<int> class c > class d {
public:
d(){
new c<b>();
}
};
int main(){
return 0;
}
Compiled with GCC
, no error.
However in HP aCC
, the following error occurred:
Error 419: "a.cpp", line 7 # 'c' is used as a type, but has not been defined as a type. new c(); ^ Error 318: "a.cpp", line 7 # A template name was expected instead of ''. Did you forget to define the template? new c(); ^^^^
Now I'm wondering if the HP aCC
compiler supports template as template parameter.
Did I make any mistake in above code?