================ @@ -756,3 +756,33 @@ abs(const number<T, ExpressionTemplates> &v) { } } + +// NOLINTBEGIN +namespace custom { +template <bool B, class T = void> struct enable_if { }; + +template <class T> struct enable_if<true, T> { typedef T type; }; + +template <bool B, class T = void> +using enable_if_t = typename enable_if<B, T>::type; + +} // namespace custom +// NOLINTEND ---------------- NagyDonat wrote:
Except for the name of the namespace, this block is identical to the `namespace std` block at the beginning of this test file. I don't understand the purpose of the NOLINTBEGIN/NOLINTEND markers, so I just copied them blindly. Feel free to suggest removing them if you know that they are superfluous (in that case I'll probably remove them from the beginning of the file as well). https://github.com/llvm/llvm-project/pull/155237 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits