Skip to content

Commit

Permalink
[list helpers] test: added test::non_copyable_thing default constru…
Browse files Browse the repository at this point in the history
…ctor

With GCC-14.2.1, compiling with `-std=c++23`: the expression `T{}` seems to expect an explicit default constructor
if T (only) has deleted copy-constructors and defaulted move-constructors.
  • Loading branch information
Sonotsugipaa committed Sep 3, 2024
1 parent 67be52d commit 4ccc849
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/list_helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ namespace test
{
struct non_copyable_thing
{
non_copyable_thing() = default;

non_copyable_thing(const non_copyable_thing&) = delete;
non_copyable_thing& operator = (const non_copyable_thing&) = delete;

Expand Down

0 comments on commit 4ccc849

Please sign in to comment.