Skip to content

Instantly share code, notes, and snippets.

@Idorobots
Created July 20, 2016 08:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Idorobots/9d9d62b37644c37d33f18bd0860c0f29 to your computer and use it in GitHub Desktop.
Save Idorobots/9d9d62b37644c37d33f18bd0860c0f29 to your computer and use it in GitHub Desktop.
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