Opened 10 years ago
Closed 10 years ago
#7497 closed Bugs (duplicate)
Boost.Random does not work with exceptions disabled
Reported by: | Mathias Gaunard | Owned by: | Steven Watanabe |
---|---|---|---|
Milestone: | To Be Determined | Component: | random |
Version: | Boost 1.51.0 | Severity: | Problem |
Keywords: | Cc: |
Description (last modified by )
cannot use 'throw' with exceptions disabled in .../boost_1_51_0/boost/random/detail/seed_impl.hpp
Please use BOOST_THROW_EXCEPTION instead of naked throw.
(assigning to Steven because he's the author of the file in question)
Attachments (1)
Change History (5)
comment:1 by , 10 years ago
Description: | modified (diff) |
---|---|
Owner: | changed from | to
comment:2 by , 10 years ago
by , 10 years ago
Attachment: | boost_random_throw_exception.diff added |
---|
replace throw by boost::throw_exception
comment:4 by , 10 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
If I may add, please don't use exceptions for incorrect input/usage, that's what asserts are for. I really don't like code that doesn't allocate resources to add EH bloat...