开发者

deriving a templated class in c++

开发者 https://www.devze.com 2022-12-21 01:37 出处:网络
I have a templated base class which follows: template<class scalar_type, template<typename > class functor>

I have a templated base class which follows:

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

How开发者_如何学Python to derive a class from this templated class?


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

?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号