Opened 10 years ago

Closed 9 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.

Change History (1)

comment:1 by Steven Watanabe, 9 years ago

Resolution: wontfix
Status: newclosed

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

Note: See TracTickets for help on using tickets.