Skip to content

Instantly share code, notes, and snippets.

@bbkane
Created October 10, 2015 00:13
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 bbkane/ae6d6f91720d3703dbf7 to your computer and use it in GitHub Desktop.
Save bbkane/ae6d6f91720d3703dbf7 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <vector>
#include <string>
int main()
{
std::string i{"Hello"};
// static_assert(std::is_same<decltype(i), char>(), "Oops!");
std::vector<decltype(i)> v {i};
for(auto i: v) { std::cout << i << std::endl; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment