Created
March 19, 2012 21:57
-
-
Save sheepmaster/2127458 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| template <typename T> | |
| class Bar { | |
| private: | |
| friend void T::FriendMethod(); | |
| static void PrivateMethod() { | |
| } | |
| }; | |
| class Foo { | |
| private: | |
| static void FriendMethod() { | |
| Bar<Foo>::PrivateMethod(); | |
| } | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment