Boost C++ Libraries: Ticket #3719: shadowed member warning in random library https://svn.boost.org/trac10/ticket/3719 <p> When including boost/random/additive_combine.hpp a warning is issued with compiling with gcc and -Wshadow: </p> <p> In file included from <em>mathworks/hub/3rdparty/R2010b/147024/glnxa64/boost/include/boost/random.hpp:37, </em></p> <blockquote> <p> from test/test.cpp:16: </p> </blockquote> <p> <em>mathworks/hub/3rdparty/R2010b/147024/glnxa64/boost/include/boost/random/additive_combine.hpp: In constructor 'boost::random::additive_combine&lt;MLCG1, MLCG2, val&gt;::additive_combine(typename MLCG1::result_type)': </em>mathworks/hub/3rdparty/R2010b/147024/glnxa64/boost/include/boost/random/additive_combine.hpp:58: warning: declaration of 'seed' shadows a member of 'this' <em>mathworks/hub/3rdparty/R2010b/147024/glnxa64/boost/include/boost/random/additive_combine.hpp: In member function 'void boost::random::additive_combine&lt;MLCG1, MLCG2, val&gt;::seed(typename MLCG1::result_type)': </em>mathworks/hub/3rdparty/R2010b/147024/glnxa64/boost/include/boost/random/additive_combine.hpp:69: warning: declaration of 'seed' shadows a member of 'this' </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3719 Trac 1.4.3 Marshall Clow Fri, 04 Dec 2009 22:20:19 GMT owner changed https://svn.boost.org/trac10/ticket/3719#comment:1 https://svn.boost.org/trac10/ticket/3719#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">No-Maintainer</span> to <span class="trac-author">Marshall Clow</span> </li> </ul> <p> I can fix this one. </p> Ticket Marshall Clow Fri, 04 Dec 2009 22:23:11 GMT status changed https://svn.boost.org/trac10/ticket/3719#comment:2 https://svn.boost.org/trac10/ticket/3719#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> Fixed on trunk in <a class="changeset" href="https://svn.boost.org/trac10/changeset/58148" title="Fixed shadow warnings reported in ticket 3710">[58148]</a>. I will wait for the tests to cycle, and then merge to release. </p> Ticket Steven Watanabe Sat, 05 Dec 2009 01:01:34 GMT <link>https://svn.boost.org/trac10/ticket/3719#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3719#comment:3</guid> <description> <p> I think there are a few other changes that need to be merged. I was going to take care of them, but svn:mergeinfo at the root got clobbered and I don't really feel like trying to work it out manually right now. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Wed, 09 Dec 2009 05:30:47 GMT</pubDate> <title>owner, status changed https://svn.boost.org/trac10/ticket/3719#comment:4 https://svn.boost.org/trac10/ticket/3719#comment:4 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Marshall Clow</span> to <span class="trac-author">Steven Watanabe</span> </li> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">new</span> </li> </ul> Ticket Steven Watanabe Sat, 02 Jan 2010 21:23:20 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3719#comment:5 https://svn.boost.org/trac10/ticket/3719#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/58649" title="Merge Random from the trunk. Fixes #3719">[58649]</a>) Merge Random from the trunk. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3719" title="#3719: Bugs: shadowed member warning in random library (closed: fixed)">#3719</a> </p> Ticket