Modify

Opened 5 years ago

Closed 3 years ago

#7686 closed Support Requests (wontfix)

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 (0)

Change History (1)

comment:1 Changed 3 years ago by steven_watanabe

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

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

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain no-maintainer.
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.