summaryrefslogtreecommitdiff
path: root/boost/random/hyperexponential_distribution.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/random/hyperexponential_distribution.hpp')
-rw-r--r--boost/random/hyperexponential_distribution.hpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/boost/random/hyperexponential_distribution.hpp b/boost/random/hyperexponential_distribution.hpp
index 046d0fc401..a2833e8a9a 100644
--- a/boost/random/hyperexponential_distribution.hpp
+++ b/boost/random/hyperexponential_distribution.hpp
@@ -490,14 +490,10 @@ class hyperexponential_distribution
rates.clear();
}
- bool fail = false;
-
// Adjust vector sizes (if needed)
if (param.probs_.size() != param.rates_.size()
|| param.probs_.size() == 0)
{
- fail = true;
-
const std::size_t np = param.probs_.size();
const std::size_t nr = param.rates_.size();
@@ -521,13 +517,6 @@ class hyperexponential_distribution
// can be changed due to size conformance
hyperexp_detail::normalize(param.probs_);
- // Set the error state in the underlying stream in case of invalid input
- if (fail)
- {
- // This throws an exception if ios_base::exception(failbit) is enabled
- is.setstate(std::ios_base::failbit);
- }
-
//post: vector size conformance
assert(param.probs_.size() == param.rates_.size());