[libcxx-commits] [PATCH] D139189: [libc++] Granularize <type_traits> includes in <concepts>
Nikolas Klauser via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Dec 7 05:20:08 PST 2022
philnik added inline comments.
================
Comment at: libcxx/test/libcxx/ranges/range.utility.helpers/different_from.compile.pass.cpp:18
+#include <__concepts/different_from.h>
+TEST_DIAGNOSTIC_POP
+
----------------
jloser wrote:
> Mordante wrote:
> > What is the benefit of using a private header here?
> I assume it's because there is no `std::different_from`, it's just a useful private concept that we have unit tests for. I'm not sure this is the most appropriate home for these tests nested in `ranges/range.utility.helpers` as it's more generic than that (isomorphic to `std::same_as`).
We check that `<__concpet/different_from.h>` is self-contained. We might as well, since we test implementation details anyways.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139189/new/
https://reviews.llvm.org/D139189
More information about the libcxx-commits
mailing list