Commit bc14a77d by Christian Kern

Check for EMBB_USE_EXCEPTIONS, only forward message if enabled.

parent 4aecadf9
......@@ -177,11 +177,15 @@ void MergeSortAllocate(
MergeSort(first, last, temporary, comparison, policy, block_size);
} EMBB_CATCH (embb::base::ErrorException &) {
} EMBB_CATCH (embb::base::ErrorException & e) {
// embb exception handling does not support catch(...) and rethrow yet.
EMBB_THROW(embb::base::ErrorException, \
"Rethrown exception of type ErrorException");
// Rethrow only, if exceptions are enabled... Otherwise, the parameter
// e cannot be used, as it is not defined.
EMBB_THROW(embb::base::ErrorException, e.what());
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment