[clang] [clang] Implement CWG1878 "`operator auto` template" (PR #78103)

via cfe-commits cfe-commits at lists.llvm.org
Sun Jan 14 09:35:12 PST 2024


================
@@ -686,3 +686,19 @@ auto f(auto x) { // cxx14-error {{'auto' not allowed in function prototype}}
 }
 
 }
+
+struct DeducedTargetTypeOfConversionFunction {
+  operator auto() const { return char(); }
+  operator const auto() const { return float(); }
----------------
cor3ntin wrote:

can you add tests with references?

https://github.com/llvm/llvm-project/pull/78103


More information about the cfe-commits mailing list