Hi all,
I'm having a problem using a typedef'd name in a friend class declaration. What I'm trying is variations on the following:
Surely there's a way to make A::other_type a friend class, or am I mistaken? I can't help feel I'm missing something obvious here. Any pointers would be much appreciated.Code:
struct Type
{
typedef OtherType other_type;
};
class A
{
public:
typedef typename Type::other_type other_type;
// ...
private:
friend typename other_type;
};