Skip to content

Instantly share code, notes, and snippets.

@cammckinnon
Created June 3, 2012 22:06
Show Gist options
  • Save cammckinnon/2865185 to your computer and use it in GitHub Desktop.
Save cammckinnon/2865185 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <vector>
std::vector<bool> v;
int main() {
v.push_back(true);
auto r = v[0];
r = false;
std::cout << v[0] << "\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment