Skip to content

Instantly share code, notes, and snippets.

@aruslan
Created January 12, 2012 20:22
Show Gist options
  • Save aruslan/1602886 to your computer and use it in GitHub Desktop.
Save aruslan/1602886 to your computer and use it in GitHub Desktop.
#include <iostream>
template<class T>
struct BX
{
T t;
};
template<class T>
struct B {
typedef BX<T> X;
};
template<class T>
void foo(BX<T> &x) {
std::cout << "foo(" << typeid(x).name() << ")" << std::endl;
}
int main(void) {
B<int>::X x;
foo(x);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment