Created
December 1, 2015 21:49
-
-
Save jorendorff/de7cf2b24be8fd45a535 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
| // A class template that can't be successfully instantiated. | |
| template <typename X> | |
| struct Foo { | |
| X data; | |
| Foo<X> badIdea; // error: incomplete type | |
| }; | |
| struct T { int x; }; | |
| typedef Foo<T> FooT; | |
| int main() { return 0; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment