Modify

Opened 8 years ago

Closed 8 years ago

#3719 closed Bugs (fixed)

shadowed member warning in random library

Reported by: nathan.brewton@… Owned by: Steven Watanabe
Milestone: Boost 1.42.0 Component: random
Version: Boost 1.40.0 Severity: Problem
Keywords: warnings Cc:

Description

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'

Attachments (0)

Change History (5)

comment:1 Changed 8 years ago by Marshall Clow

Owner: changed from No-Maintainer to Marshall Clow

I can fix this one.

comment:2 Changed 8 years ago by Marshall Clow

Status: newassigned

Fixed on trunk in [58148]. I will wait for the tests to cycle, and then merge to release.

comment:3 Changed 8 years ago by Steven Watanabe

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.

comment:4 Changed 8 years ago by Marshall Clow

Owner: changed from Marshall Clow to Steven Watanabe
Status: assignednew

comment:5 Changed 8 years ago by Steven Watanabe

Resolution: fixed
Status: newclosed

(In [58649]) Merge Random from the trunk. Fixes #3719

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Steven Watanabe.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.