#5794 closed Bugs (fixed)
seed_rng.hpp contains invalid forward declaration of random_device
| Reported by: | 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 , 11 years ago
comment:2 by , 11 years ago
Fixed in trunk. In a few days, after tests cycle, I'll commit to release.
Note:
See TracTickets
for help on using tickets.

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 {