Created
January 26, 2013 16:13
-
-
Save bastih/4643077 to your computer and use it in GitHub Desktop.
C++ never seizes...
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
struct A { | |
template <bool b> | |
void foo () {} | |
}; | |
template<class T > | |
struct B { | |
void foo() { | |
T t; | |
t.foo<false>(); // fix via: t.template foo<false>(); | |
} | |
}; | |
int main() { | |
B<A> val; | |
val.foo(); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment