Skip to content

Instantly share code, notes, and snippets.

@Zerophase
Last active September 1, 2016 03:03
Show Gist options
  • Save Zerophase/1f75e0aeb3bae792e6ef7d7de8ff582c to your computer and use it in GitHub Desktop.
Save Zerophase/1f75e0aeb3bae792e6ef7d7de8ff582c to your computer and use it in GitHub Desktop.
void test(std::vector<int> test)
{
for (const auto t : test)
{
std::cout << t << std::endl;
}
}
int main()
{
// this works.
test({1,2,3,4});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment