Jak oznaczyć szablon struktury jako przyjaciel?
Mam taki kod:
template <typename T, typename U> struct MyStruct {
T aType;
U anotherType;
};
class IWantToBeFriendsWithMyStruct
{
friend struct MyStruct; //what is the correct syntax here ?
};
Jaka jest poprawna składnia, aby nadać szablonowi przyjaźń?