Skip to content

Instantly share code, notes, and snippets.

@fabiogaluppo
Last active January 25, 2016 19:27
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 fabiogaluppo/5055858a1bd78fb39b35 to your computer and use it in GitHub Desktop.
Save fabiogaluppo/5055858a1bd78fb39b35 to your computer and use it in GitHub Desktop.
decltype(auto) a4 = generate_ascii_random_string(8); //const std::string
decltype(auto) a5 = generate_ascii_random_string(8); //const std::string
//a4 = a5; //compilation will fail, because a4 is read-only
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment