Skip to content

Commit

Permalink
clang17
Browse files Browse the repository at this point in the history
  • Loading branch information
huixie90 committed Jun 22, 2024
1 parent 19bb14d commit 50552c8
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ static_assert(!std::is_trivially_copy_constructible_v<std::expected<CopyableNonT
static_assert(!std::is_trivially_copy_constructible_v<std::expected<int, CopyableNonTrivial>>);
static_assert(!std::is_trivially_copy_constructible_v<std::expected<CopyableNonTrivial, CopyableNonTrivial>>);

#if defined(TEST_CLANG_VER) && TEST_CLANG_VER >= 1700
struct Any {
constexpr Any() = default;
constexpr Any(const Any&) = default;
Expand All @@ -72,7 +71,6 @@ struct Any {
requires(!std::is_same_v<Any, std::decay_t<T>> && std::is_copy_constructible_v<std::decay_t<T>>)
constexpr Any(T&&) {}
};
#endif

constexpr bool test() {
// copy the value non-trivial
Expand Down Expand Up @@ -123,7 +121,7 @@ constexpr bool test() {

{
// TODO(LLVM 20): Remove once we drop support for Clang 17
#if defined(TEST_CLANG_VER) && TEST_CLANG_VER >= 1700
#if defined(TEST_CLANG_VER) && TEST_CLANG_VER >= 1800
// https://github.com/llvm/llvm-project/issues/92676
std::expected<Any, int> e1;
auto e2 = e1;
Expand Down

0 comments on commit 50552c8

Please sign in to comment.