Skip to content

Instantly share code, notes, and snippets.

@ivant
Created March 12, 2012 22:13
Show Gist options
  • Save ivant/2025033 to your computer and use it in GitHub Desktop.
Save ivant/2025033 to your computer and use it in GitHub Desktop.
C++ compiler infinite loop
template <class T>
struct Loop {
Loop<T *> operator->();
};
int main() {
Loop<int> i, j = i->hooray;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment