Skip to content
Snippets Groups Projects
Commit 2d139926 authored by Jorrit Fahlke's avatar Jorrit Fahlke
Browse files

[tuple] Fix the return type of get().

For a tuple of references get() should still return a non-const reference,
even if the tuple itself is const:

  int n = 0;
  const tuple<int&> t(n);
  get<0>(t) = 1;  // post: n == 1

Without this property, tie() would be largely meaningless.

[[Imported from SVN: r6315]]
parent ea9d80e7
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment