Skip to content

Instantly share code, notes, and snippets.

@cammckinnon
Created May 21, 2012 18:10
Show Gist options
  • Save cammckinnon/2763671 to your computer and use it in GitHub Desktop.
Save cammckinnon/2763671 to your computer and use it in GitHub Desktop.
template <class A>
class Outer {
public:
template <class B>
class Inner {
public:
template <class C>
void foo(Outer<C>::template Inner<C> innerC) { }
};
Inner<A> inner;
};
class X {};
class Y {};
int main() {
Outer<X> outerX;
Outer<Y> outerY;
outerX.inner.foo<Y>(outerY.inner);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment