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

Clang V7.1.0 warning #68

Open
hkaiser opened this issue Aug 25, 2019 · 2 comments
Open

Clang V7.1.0 warning #68

hkaiser opened this issue Aug 25, 2019 · 2 comments

Comments

@hkaiser
Copy link

hkaiser commented Aug 25, 2019

We are seeing this warning while #including <variant.hpp> (V1.4.0) when using Clang 7.1.0:

/hpx/source/libs/datastructures/include/hpx/datastructures/detail/variant.hpp:2243:22: error: constructor accepting a forwarding reference can hide the copy and move constructors [bugprone-forwarding-reference-overload,-warnings-as-errors]
    inline constexpr variant(Arg &&arg) noexcept(
                     ^
/hpx/source/libs/datastructures/include/hpx/datastructures/detail/variant.hpp:2231:5: note: copy constructor declared here
    variant(const variant &) = default;
    ^
/hpx/source/libs/datastructures/include/hpx/datastructures/detail/variant.hpp:2232:5: note: move constructor declared here
    variant(variant &&) = default;

Anything we can do about this?

@mpark
Copy link
Owner

mpark commented Aug 26, 2019

I think the only thing we could do probably is to #pragma disable the warning.

@hkaiser
Copy link
Author

hkaiser commented Aug 26, 2019

I think the only thing we could do probably is to #pragma disable the warning.

@mpark: yes, I agree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants