[PATCH] D113393: [c++2b] Implement P0849R8 auto(x)

Zhihao Yuan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 23 13:34:29 PST 2021


lichray added a comment.

In D113393#3128840 <https://reviews.llvm.org/D113393#3128840>, @rsmith wrote:

> I also wonder whether we should accept `decltype(auto)(x)` as an extension, but we can discuss that separately.

Implemented. To produce a reference rather than a temporary, I had to special-case it, but in the end, it costs fewer lines of diff.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D113393



More information about the cfe-commits mailing list