Opened 15 years ago
Closed 14 years ago
#1546 closed Bugs (fixed)
Method boost::random::uniform_int::operator()(engine, value) is missing
Reported by: | Owned by: | Marshall Clow | |
---|---|---|---|
Milestone: | Boost 1.38.0 | Component: | random |
Version: | Boost 1.34.1 | Severity: | Problem |
Keywords: | Cc: |
Description
boost::random::variate_generator::operator()(T value)
seems to offer the ability to use the variate_generator with std::random_shuffle()
. However, it relies on the distribution used providing a method along the lines of:
template <EngineT, ValueT> ValueT operator()(EngineT, ValueT);
According to the Boost.Random documentation this is provided by the uniform_int
distribution but the actual implementation of uniform_int
has no such method.
Attachments (1)
Change History (7)
comment:1 by , 15 years ago
Component: | None → random |
---|
comment:2 by , 15 years ago
Owner: | set to |
---|
by , 15 years ago
Attachment: | bug_1546.diff added |
---|
comment:3 by , 15 years ago
Added fix for this problem. This was built and tested using gcc-4.1.2 on Gentoo Linux (32-Bit).
comment:4 by , 14 years ago
The milestone for this is 1.36.0 but it seems that was missed - is this likely to be incorporated in to a future release soon? Can I apply the patch I contributed to trunk myself?
comment:5 by , 14 years ago
Milestone: | Boost 1.36.0 → Boost 1.38.0 |
---|---|
Owner: | changed from | to
Committed the patch as revision 50312. I'll watch the test results for a while, and then if they're good, merge to release.
Patch (to version 43682 of trunk) providing fix and test