Created
July 20, 2016 08:20
-
-
Save Idorobots/9d9d62b37644c37d33f18bd0860c0f29 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
template <typename T> | |
struct Loop { | |
Loop<T*> operator->() {} | |
}; | |
int main(void) { | |
Loop<int> i, j = i->hooray; // Loops until memory is exhausted. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment