I'm having some difficulties attempting to access a private constructor of a derived class, which is specified as a template parameter. I was hoping that specifying friend T would solve the issue, but ...

After hours of trying to find out this syntax by reading the standart I gave up on trying to understand this.
I have a template class with a template constructor I need to partially specialize, since ...

Is is possible that in a game app, one user invites one of his friends, and after his friend accepts, they can play together?
Neither taggable_friends nor invitable_friends returns an useful unique ...

I have seen a CRTP solution, which extracted the interface into the base class, and friended only one of the pack arguments per base class. Then the most derived class inherited all the friended base ...

C++ allows template arguments that refer to template classes, not instances of it. For example the function fun below.
At the same time there is a feature by which template arguments can be omitted ...

My first post here. I have two classes - Base and Derived (derived publicly from Base). In Derived, I have a function printAsFriend. Compiler is unhappy with this. Why? Methods in other classes can be ...

According to Facebook v4 changelog, all FB*ViewController were deprecated and we should build our own table view controller to show friends list.
Now, before I put myself working on it, does anyone ...

I tried to make friend ostream function. The compiler say i cannot access private member of the class, even though i declared it as friend. I read a similar question and it say the problem is with the ...

I have a certain design strategy where the constructor of my class is private and can only be constructed by friends of the class. Inside the friend function, I am trying to create a unique_pointer of ...

I used Parse (To be more specific, ParseUI, but I think they use the same method in PFTwitterUtils) to login with Twitter. After it logged in successfully, I want to get user friends list, so I wrote ...