c++ - Scope of template parameter too narrow
- Richard (10/10) Dec 18 2002 14.1-13 Template parameters. Using beta 12:
14.1-13 Template parameters. Using beta 12:
template<class T, class U> class A { };
template<class T = unsigned long, class U = int>
class B : public A<T, U> { };
//Error: type-argument expected for parameter 'T' of template 'A'
void main() {
B<> b;
}
Part of boost dynamic_bitset<> class
Richard
Dec 18 2002








Richard <fractal clark.net>