rsmith added a comment.

For what it's worth, the most recent thoughts from CWG on this question are 
from 2015 (prior to guaranteed copy elision, which probably changes the 
answer): http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#1965. That 
direction would permit `const_cast` to rvalue reference type to materialize a 
temporary for arrays and classes but not scalar types (which seems just as 
arbitrary as the current set of rules to me).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D87565/new/

https://reviews.llvm.org/D87565

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
  • [PATCH] D87565: [... Mark de Wever via Phabricator via cfe-commits
    • [PATCH] D875... Richard Smith - zygoloid via Phabricator via cfe-commits
    • [PATCH] D875... Richard Smith - zygoloid via Phabricator via cfe-commits

Reply via email to