Skip to content

Commit 66857ea

Browse files
committed
Added default constructor for non_copyable_thing that Clang doesn't generate in C++20 mode
1 parent b7bacb0 commit 66857ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/list_helpers.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ namespace test
3838
{
3939
struct non_copyable_thing
4040
{
41+
non_copyable_thing() = default;
4142
non_copyable_thing(const non_copyable_thing&) = delete;
4243
non_copyable_thing& operator = (const non_copyable_thing&) = delete;
4344

@@ -87,4 +88,4 @@ TEST_CASE("construct", "[list helpers]")
8788

8889
REQUIRE(result.has_value());
8990
REQUIRE(result.value().size() == 4);
90-
}
91+
}

0 commit comments

Comments
 (0)