Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
//
//===----------------------------------------------------------------------===//

// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
// REQUIRES: std-at-least-c++23

// These compilers don't support __builtin_is_implicit_lifetime yet.
// UNSUPPORTED: clang-19, gcc-14, gcc-15, apple-clang-16, apple-clang-17
// UNSUPPORTED: clang-19, gcc-15, apple-clang-17

// <type_traits>

Expand Down Expand Up @@ -139,13 +139,6 @@ constexpr void test_is_implicit_lifetime() {
test_is_implicit_lifetime<T[94], true>();
}

struct ArithmeticTypesTest {
template <class T>
constexpr void operator()() {
test_is_implicit_lifetime<T>();
}
};

constexpr bool test() {
// Standard fundamental C++ types

Expand All @@ -155,7 +148,7 @@ constexpr bool test() {
test_is_implicit_lifetime<const void, false>();
test_is_implicit_lifetime<volatile void, false>();

types::for_each(types::arithmetic_types(), ArithmeticTypesTest{});
types::for_each(types::arithmetic_types(), []<typename T> { test_is_implicit_lifetime<T>(); });

test_is_implicit_lifetime<Enum>();
test_is_implicit_lifetime<SignedEnum>();
Expand Down
Loading