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

Arthur O'Dwyer via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 13 16:25:53 PST 2021


Quuxplusone added a comment.

Am I seeing correctly that there's no feature-test macro for `auto(x)`?

I'm proposing to introduce `#define _LIBCPP_AUTO_CAST(expr)` into libc++, so that we can use it for Ranges things that specify in terms of `auto(x)`... but if I want to make it conditionally expand into `auto(x)` on compilers that support the feature, I basically have to check the compiler vendor and version number? No feature-test macro?


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