简体   繁体   English

在C ++中派生模板化类

[英]deriving a templated class in c++

I have a templated base class which follows: 我有一个模板化的基类,如下所示:

template<class scalar_type, template<typename > class functor>
class convex_opt{ ..
};

How to derive a class from this templated class? 如何从该模板化类派生一个类?

template<class scalar_type, template<typename > class functor>
class derived : public convex_opt<scalar_type, functor> {
 ...

?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM