Skip to content

Instantly share code, notes, and snippets.

@danlark1
Created April 13, 2020 14:18
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 danlark1/013aec2d1db5b1b4fc17134112553933 to your computer and use it in GitHub Desktop.
Save danlark1/013aec2d1db5b1b4fc17134112553933 to your computer and use it in GitHub Desktop.
constexpr std::pair<int, int> t;
static_assert(t.first == 0 && t.second == 0);
std::array<int, 5> arr;
// assert(arr[0] == 0); // Undefined behavior
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment