Guest User

Untitled

a guest
Oct 22nd, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. template <typename T>
  2. class Foo{
  3. private:
  4. class Bar{
  5. };
  6. };
  7.  
  8. template <typename T>
  9. void Fun(const Foo<T> &f){
  10. Foo<int>::Bar b; //This line of code.
  11. }
  12.  
  13. int main(){
  14. Foo<int> f;
  15. Fun(f);
  16. return 0;
  17. }
Add Comment
Please, Sign In to add comment