[Boost-bugs] [Boost C++ Libraries] #4777: tr1 random tests don't compile: private typedef in boost::random::discard_block

Subject: [Boost-bugs] [Boost C++ Libraries] #4777: tr1 random tests don't compile: private typedef in boost::random::discard_block
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-10-23 15:13:03


#4777: tr1 random tests don't compile: private typedef in
boost::random::discard_block
--------------------------------------------------+-------------------------
 Reporter: Jim Bell <jim@…> | Owner: no-maintainer
     Type: Bugs | Status: new
Milestone: Boost-1.45.0 | Component: random
  Version: Boost Development Trunk | Severity: Showstopper
 Keywords: result_type random compile error TR1 |
--------------------------------------------------+-------------------------
 All the tr1 random tests fail to compile
 {{{
 error C2248: 'boost::random::discard_block<URNG,p,r>::result_type' :
 cannot access private typedef declared in class
 'boost::random::discard_block<URNG,p,r>'
 ..\boost/random/discard_block.hpp(199) : see declaration of
 'boost::random::discard_block<URNG,p,r>::result_type'
 }}}

 Doesn't seem like a compiler error: the typedef really is private in
 discard_block.hpp line 199.

 The base class, discard_block_engine, has the typedef public, so it seems
 that discard_block should follow suit.

 Affects 4 tests from these two places in the test code:
 ..\libs\tr1\test\test_random.cpp(151)
 ..\libs\tr1\test\run_random.cpp(21)

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4777>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:04 UTC