From 53b9ec80a3b7bb7e403a8c7330c0741484b9ba4d Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Fri, 22 Nov 2024 19:04:58 +0100 Subject: Don't force niched values to be move assignable in reset, and fix warnings --- asl/tests/option_tests.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'asl/tests/option_tests.cpp') diff --git a/asl/tests/option_tests.cpp b/asl/tests/option_tests.cpp index 8b98c99..15367f1 100644 --- a/asl/tests/option_tests.cpp +++ b/asl/tests/option_tests.cpp @@ -308,4 +308,7 @@ ASL_TEST(niche) opt = opt2; ASL_TEST_EXPECT(opt2.has_value()); ASL_TEST_EXPECT(opt2.value().value == 2); + + opt.reset(); + ASL_TEST_EXPECT(!opt.has_value()); } -- cgit