sách gpt4 ăn đã đi

Chất kết dính tham số mẫu tùy chỉnh để sử dụng với các lớp mẫu mẫu

In lại Tác giả: Walker 123 更新时间:2023-11-30 01:52:58 27 4
mua khóa gpt4 giày nike

我有一个带有 3 个参数的模板类,我需要先绑定(bind)其中的 2 个,然后将绑定(bind)的版本传递给我继承自的“父”模板模板类。(我已经搜索过以前提出的问题,但没有人试图从父级继承。)

我怎样才能让它发挥作用?

这是一个示例代码:

template <> class W, class ...D>
struct Parent{};

template
struct Arg{};

template
struct Bind{
template
using arg = Arg;
};

template
struct DD : public Parent<>::t, D...> //compiler complains*
{ };

* template argument for template template parameter must be a class template or type alias template.

我试过使用 typename 关键字;并在 Binder 中使用 struct 继承而不是 using 指令,但均无效。

27 4 0
Chứng chỉ ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com
Xem sitemap của VNExpress