Modify

Ticket #7686 (closed Support Requests: wontfix)

Opened 4 years ago

Last modified 3 years ago

missing namespace in docs

Reported by: Akira Takahashi <faithandbrave@…> Owned by: no-maintainer
Milestone: To Be Determined Component: random
Version: Boost 1.52.0 Severity: Problem
Keywords: Cc:

Description

boost::random::mt19937 doc says follow:

// In header: <boost/random/mersenne_twister.hpp>


typedef mersenne_twister_engine< uint32_t, 32, 624, 397, 31, 0x9908b0df, 11, 0xffffffff, 7, 0x9d2c5680, 15, 0xefc60000, 18, 1812433253 > mt19937;

I think shoule be:

// In header: <boost/random/mersenne_twister.hpp>

namespace boost {
  namespace random {
    typedef mersenne_twister_engine< uint32_t, 32, 624, 397, 31, 0x9908b0df, 11, 0xffffffff, 7, 0x9d2c5680, 15, 0xefc60000, 18, 1812433253 > mt19937;
  }

  using random::mt19937;
}

http://www.boost.org/doc/libs/1_52_0/doc/html/boost/random/mt19937.html

Other generators has same issue.

Attachments

Change History

comment:1 Changed 3 years ago by steven_watanabe

  • Status changed from new to closed
  • Resolution set to wontfix

This is what boostbook generates. Note that the using declaration is deprecated, and I do not want it to appear in the docs.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


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

 
Note: See TracTickets for help on using tickets.