Bjarne Stroustrup 是不是错了!?请各位大小牛来帮我看看.....
BS在The Design and Evolution of C++ 15.4.1 中说,模板参数可以通过派生的方式来限定.比如:
template < typename _T >
class A {
public:
bool operator < ( const _T & );
};
template < class _C : A >
class vector {
...
};
可是我在其它的书上根本找不到这种用法,包括TCPL和ISO14882.用各种编译器也试了,不行.
是不是BS弄错了?