Opened 5 years ago

#13015 new Patches

Several "declaration hides member" warnings in Boost random

Reported by: thimo.neubauer@… Owned by: No-Maintainer
Milestone: To Be Determined Component: random
Version: Boost 1.63.0 Severity: Cosmetic
Keywords: Cc:

Description

In our nightly builds with the Intel Compiler 2016.3 we're getting multiple warnings in the style of:

In file included from /build/MAIN/Third_Party_Libraries/Boost/include/boost/random/ranlux.hpp(19),
                 from /build/MAIN/Third_Party_Libraries/Boost/include/boost/random.hpp(44),
                 from /build/MAIN/Source_Code/Test/CSTlibTester/Datagram.cpp(4):
/build/MAIN/Third_Party_Libraries/Boost/include/boost/random/subtract_with_carry.hpp(247): warning #3280: declaration hides member "boost::random::subtract_with_carry_engine<IntType, w, s, r>::x" (declared at line 303)
      friend bool operator==(const subtract_with_carry_engine& x, const subtract_with_carry_engine& y)

The warnings are pretty easy to fix, I'll attach a patch relative to Boost 1.60.0 (the version we're using)

Attachments (1)

shadowed_members.patch (3.5 KB ) - added by thimo.neubauer@… 5 years ago.
Patch relative to Boost 1.60.0

Download all attachments as: .zip

Change History (1)

by thimo.neubauer@…, 5 years ago

Attachment: shadowed_members.patch added

Patch relative to Boost 1.60.0

Note: See TracTickets for help on using tickets.