limit template type to only derive from certain base class.

// static_assert(std::is_base_of<Port, T>::value,
// "T must derive from Port");

posted on 2021-02-12 06:35  ghostli123  阅读(41)  评论(0)    收藏  举报

导航