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

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 18 04:51:30 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(); }
----------------
Endilll wrote:

Done

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


More information about the cfe-commits mailing list