[clang] [clang] Add `clang::behaves_like_std(...)` attribute (PR #76596)

Nikolas Klauser via cfe-commits cfe-commits at lists.llvm.org
Sat Dec 30 04:17:29 PST 2023


================
@@ -0,0 +1,20 @@
+// RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s
+
+namespace mystd {
+inline namespace bar {
+template <class T> struct remove_reference { typedef T type; };
+template <class T> struct remove_reference<T&> { typedef T type; };
+template <class T> struct remove_reference<T&&> { typedef T type; };
----------------
philnik777 wrote:

Maybe just use `__remove_reference_t`?

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


More information about the cfe-commits mailing list