[Boost-bugs] [Boost C++ Libraries] #3719: shadowed member warning in random library

Subject: [Boost-bugs] [Boost C++ Libraries] #3719: shadowed member warning in random library
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-12-04 22:11:48


#3719: shadowed member warning in random library
------------------------------------------+---------------------------------
 Reporter: nathan.brewton@… | Owner: no-maintainer
     Type: Bugs | Status: new
Milestone: Boost 1.42.0 | Component: random
  Version: Boost 1.40.0 | Severity: Problem
 Keywords: warnings |
------------------------------------------+---------------------------------
 When including boost/random/additive_combine.hpp a warning is issued with
 compiling with gcc and -Wshadow:

 In file included from
 //mathworks/hub/3rdparty/R2010b/147024/glnxa64/boost/include/boost/random.hpp:37,
                  from test/test.cpp:16:
 //mathworks/hub/3rdparty/R2010b/147024/glnxa64/boost/include/boost/random/additive_combine.hpp:
 In constructor 'boost::random::additive_combine<MLCG1, MLCG2,
 val>::additive_combine(typename MLCG1::result_type)':
 //mathworks/hub/3rdparty/R2010b/147024/glnxa64/boost/include/boost/random/additive_combine.hpp:58:
 warning: declaration of 'seed' shadows a member of 'this'
 //mathworks/hub/3rdparty/R2010b/147024/glnxa64/boost/include/boost/random/additive_combine.hpp:
 In member function 'void boost::random::additive_combine<MLCG1, MLCG2,
 val>::seed(typename MLCG1::result_type)':
 //mathworks/hub/3rdparty/R2010b/147024/glnxa64/boost/include/boost/random/additive_combine.hpp:69:
 warning: declaration of 'seed' shadows a member of 'this'

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3719>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC