[clang] [Tooling] Simplify a use of std::is_same (NFC) (PR #160237)

Jakub Kuderski via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 23 07:00:42 PDT 2025


kuhar wrote:

> > std::is_same<...>::type is the same as std::is_same<...>.
> 
> This is technically not true. `is_same<T, U>::type` names a specialization of `integral_constant`, not `is_same`.

I think the point is that it's the same for the purpose of SFINAE?

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


More information about the cfe-commits mailing list