This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] [test] Rename d to dbl in order to avoid shadowing distributions named d.
ClosedPublic

Authored by STL_MSFT on Jun 2 2016, 9:42 AM.

Details

Summary

Rename d to dbl in order to avoid shadowing distributions named d.

This was almost always declared as double d, except in rand.dist.uni.real where it was D::result_type d (still of type double).

Fixes MSVC warning C4456 "declaration of 'd' hides previous local declaration".

Diff Detail

Event Timeline

STL_MSFT updated this revision to Diff 59404.Jun 2 2016, 9:42 AM
STL_MSFT retitled this revision from to [libcxx] [test] Rename d to dbl in order to avoid shadowing distributions named d..
STL_MSFT updated this object.
STL_MSFT added reviewers: EricWF, mclow.lists.
STL_MSFT added a subscriber: cfe-commits.
EricWF accepted this revision.Jun 13 2016, 7:56 PM
EricWF edited edge metadata.
This revision is now accepted and ready to land.Jun 13 2016, 7:56 PM
EricWF closed this revision.Jun 13 2016, 7:58 PM

r272619.