Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#5794 closed Bugs (fixed)

seed_rng.hpp contains invalid forward declaration of random_device

Reported by: Johan Lindvall <johan.lindvall@…> Owned by: Andy Tompkins
Milestone: To Be Determined Component: uuid
Version: Boost 1.47.0 Severity: Regression
Keywords: Cc:

Description

The following fails to compile with 1.47.0:

#include <boost/uuid/seed_rng.hpp> #include <boost/random/random_device.hpp>

It used to work with 1.46.1 (using nondet_random.hpp)

Change History (4)

comment:1 by anonymous, 11 years ago

Patch attached:

Index: seed_rng.hpp
===================================================================
--- seed_rng.hpp	(revision 57525)
+++ seed_rng.hpp	(revision 57526)
@@ -56,8 +56,10 @@
 #endif
 
 // forward declare random number generators
-namespace boost {
+namespace boost { namespace random {
 class random_device;
+} 
+using random::random_device;
 } //namespace boost
 
 namespace boost {

comment:2 by Andy Tompkins, 11 years ago

Fixed in trunk. In a few days, after tests cycle, I'll commit to release.

comment:3 by Andy Tompkins, 11 years ago

Resolution: fixed
Status: newclosed

Checked into release.

comment:4 by anonymous, 11 years ago

Thanks, confirmed to be working in 1.48 beta.

Note: See TracTickets for help on using tickets.