Skip to content

Commit

Permalink
Disable type-deduction tests for all but C++20
Browse files Browse the repository at this point in the history
  • Loading branch information
jbcoe committed Feb 16, 2025
1 parent 2197563 commit 389687b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion polymorphic_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -846,6 +846,7 @@ TEST(PolymorphicTest, TaggedAllocatorsNotEqualMoveConstructFromValueless) {
}

#ifdef XYZ_HAS_TEMPLATE_ARGUMENT_DEDUCTION
#ifdef XYZ_HAS_STD_TYPE_IDENTITY
TEST(PolymorphicTest, TemplateArgumentDeduction) {
xyz::polymorphic p(Derived(4));

Expand All @@ -869,7 +870,6 @@ TEST(PolymorphicTest, TemplateArgumentDeductionWithAllocator) {
EXPECT_EQ(p.get_allocator().tag, 1);
}

#ifdef XYZ_HAS_STD_TYPE_IDENTITY
TEST(PolymorphicTest, TemplateArgumentDeductionWithDeducedAllocatorAndCopy) {
xyz::TaggedAllocator<int> a(1);
xyz::polymorphic p(std::allocator_arg, a, Derived(4));
Expand Down

0 comments on commit 389687b

Please sign in to comment.