From 945752e2af2c90007b20f5b418ccf1548145a7d3 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 2 Nov 2026 07:54:03 +0000 Subject: [PATCH] Release the test value with = nullptr instead of reset() clang-tidy (readability-ambiguous-smartptr-reset-call) rejects j.reset() because the pointee inherits a reset() from counting_base. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01N5NasAgbDGG28MqXjQvLqp Signed-off-by: Claude --- tests/src/unit-custom-base-class.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/unit-custom-base-class.cpp b/tests/src/unit-custom-base-class.cpp index 3f2d3e9ea..71698d041 100644 --- a/tests/src/unit-custom-base-class.cpp +++ b/tests/src/unit-custom-base-class.cpp @@ -544,7 +544,7 @@ TEST_CASE("destroying a value does not construct the custom base class") const auto check_destroy = [](std::unique_ptr j, std::size_t values) { counting_base::reset(); - j.reset(); + j = nullptr; CHECK(counting_base::constructions == 0); CHECK(counting_base::destructions == values); };