阅读背景:

如何将结构模板标记为朋友?

来源:互联网 

I have code like this:

我有这样的代码:

template <typename T, typename U> struct MyStruct {
    T aType;
    U anotherType;
};

class IWantToBeFriendsWithMyStruct
{
    friend struct MyStruct; //what is the correct syntax here ?
};
template <t



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

分享到: