Opened 9 years ago

Closed 9 years ago

#9040 closed Bugs (invalid)

Boost.random documentation references out-of-date header names

Reported by: lgtorres42@… Owned by: No-Maintainer
Milestone: To Be Determined Component: random
Version: Boost 1.54.0 Severity: Problem
Keywords: random documentation Cc:

Description

All throughout the Boost 1.54 documentation for the Random library, references are made to the following headers:

boost/random/uniform_int_distribution.hpp

boost/random/uniform_real_distribution.hpp

However, those headers have been changed to

boost/random/uniform_int.hpp

boost/random/uniform_real.hpp

The documentation should reflect the current versions of the header names.

Change History (3)

comment:1 by lgtorres42@…, 9 years ago

Another issue in the documentation: all the references to

boost::random::mt19937

should now be to

boost::mt19937

Also, is there a reason why the generator was moved out of the random namespace?

comment:2 by viboes, 9 years ago

Component: Documentationrandom
Owner: changed from Matias Capeletto to No-Maintainer

comment:3 by Steven Watanabe, 9 years ago

Resolution: invalid
Status: newclosed

I don't understand. uniform_int_distribution.hpp exists and is the preferred header to use as it matches the C++11 standard. boost::mt19937 is the old name and is still provided for backwards compatibility. boost::random::mt19937 is preferable. It sounds to me like you're using an old version of Boost but looking at the new documentation.

Note: See TracTickets for help on using tickets.