🚨 fix warnings

unit-regression2.cpp:202:34: error: all parameters should be named in a function [hicpp-named-parameter,readability-named-parameter,-warnings-as-errors]
    explicit Foo(const FooAlloc& = FooAlloc()) : value(false) {}
                                 ^
                                  /*unused*/

unit-regression2.cpp:204:10: error: use default member initializer for 'value' [modernize-use-default-member-init,-warnings-as-errors]
    bool value;
         ^
              {false}
This commit is contained in:
Niels Lohmann 2021-10-13 21:23:30 +02:00
parent 223bf3d143
commit 39928f5f8c
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69

View File

@ -199,9 +199,9 @@ class FooAlloc
class Foo
{
public:
explicit Foo(const FooAlloc& = FooAlloc()) : value(false) {}
explicit Foo(const FooAlloc& /* unused */ = FooAlloc()) : value(false) {}
bool value;
bool value = false;
};
class FooBar