Opened 12 years ago
Closed 9 years ago
#5399 closed Bugs (fixed)
random.hpp does not compile with exceptions off
Reported by: | anonymous | Owned by: | Steven Watanabe |
---|---|---|---|
Milestone: | To Be Determined | Component: | random |
Version: | Boost 1.47.0 | Severity: | Problem |
Keywords: | Cc: | loufoque@… |
Description
boost/random.hpp includes boost/random/linear_congruential.hpp
which uses throw (instead of boost::throw_exception as it should)
with exceptions off, you cannot use throw(), try, catch, etc., hence BOOST_TRY, BOOST_CATCH, BOOST_RETHROW
Attachments (3)
Change History (11)
comment:1 by , 12 years ago
by , 11 years ago
Attachment: | boost_random_exceptions.patch added |
---|
comment:2 by , 10 years ago
This is still an issue as of 1.49.0, although the location that needs to be fixed has changed. I've attached an updated patch.
comment:3 by , 10 years ago
Owner: | changed from | to
---|
Hi Steven -- I assume you're the new maintainer of the random library now, any update on whether we can get this fixed/addressed?
comment:6 by , 10 years ago
Cc: | added |
---|
comment:7 by , 9 years ago
comment:8 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
I've done full merge of Boost.Random, so this should be in the next release.
most of the other random files also throw exceptions (inversive_congruential.hpp, mersenne_twister.hpp, lagged_fibonacci.hpp, subtract_with_carry.hpp, linear_feedback_shift.hpp)