EricWF added a comment.

To expand on my concerns about lvalue elements, I would like to see tests 
something like this:

  int x = 42;
  int const y = 43;
  std::pair<int&, int const&> const p(x, y);
  static_assert(std::is_same<int const&, 
decltype(std::get<0>(std::move(p)))>::value, "");
  static_assert(std::is_same<int const&, 
decltype(std::get<1>(std::move(p)))>::value, "");

I assume you agree that this test has the correct behavior?


http://reviews.llvm.org/D14839



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to