阅读背景:

如何将模板化的struct / class声明为朋友?

来源:互联网 

I'd like to do the following:

我想做以下事情:

template <typename T>
struct foo
{
    template <typename S>
    friend struct foo<S>;

private:
    // ...
};
temp



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: