Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to use get with explicit constructor #3079

Merged
merged 9 commits into from
Oct 14, 2021
Merged

Allow to use get with explicit constructor #3079

merged 9 commits into from
Oct 14, 2021

Conversation

nlohmann
Copy link
Owner

This PR reverts commit 1101f0e which is the root cause for issue #3077.

@nlohmann nlohmann self-assigned this Oct 13, 2021
@nlohmann nlohmann linked an issue Oct 13, 2021 that may be closed by this pull request
@coveralls
Copy link

coveralls commented Oct 13, 2021

Coverage Status

Coverage remained the same at 100.0% when pulling 179023b on issue3077 into 0e694b4 on develop.

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}
Initialization of "value" is redundant.
unit-regression2.cpp:207:7: error: 'FooBar::foo' should be initialized in the member initialization list [-Werror=effc++]
  207 | class FooBar
      |       ^~~~~~
error: 'FooBar::foo' should be initialized in the member initialization list [-Werror=effc++]
@nlohmann nlohmann added this to the Release 3.10.4 milestone Oct 14, 2021
@nlohmann nlohmann added the review needed It would be great if someone could review the proposed changes. label Oct 14, 2021
Copy link

@bpmckinnon bpmckinnon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@nlohmann nlohmann removed the review needed It would be great if someone could review the proposed changes. label Oct 14, 2021
…3077

� Conflicts:
�	test/src/unit-regression2.cpp
@nlohmann nlohmann merged commit ba046e4 into develop Oct 14, 2021
@nlohmann nlohmann deleted the issue3077 branch October 14, 2021 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

explicit constructor with default does not compile
3 participants