Skip to content

[Warning] -Wparentheses on line 555 on single_include #1319

Closed
@loumalouomega

Description

The following warning appears (I am using Clang 6.0):

/home/travis/build/KratosMultiphysics/Kratos/external_libraries/json/json.hpp:19250:15:   required from here
/home/travis/build/KratosMultiphysics/Kratos/external_libraries/json/json.hpp:555:45: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
         std::is_constructible<typename ConstructibleObjectType::key_type,
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         typename object_t::key_type>::value and
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
         std::is_same<typename object_t::mapped_type,

The line on the code is:

typename object_t::key_type>::value and

Thank you very much

Metadata

Assignees

Labels

confirmedsolution: proposed fixa fix for the issue has been proposed and waits for confirmation

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions