Skip to content
Snippets Groups Projects
Commit ebb698b5 authored by kotsifa2's avatar kotsifa2
Browse files

Replaced throw with ERROR macro - more to be replaced

parent 7e44890b
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,8 @@
#include <stdexcept>
#include <limits>
#include "debug.h"
enum class MathOp {
Hypot,
Atan2,
......@@ -39,7 +41,7 @@ template <typename T> T reduceOpToIdentity(MathOp op) {
case MathOp::Min:
return std::numeric_limits<T>::max();
default:
throw std::runtime_error("Operator does not have id value");
ERROR("Operator does not have id value\n");
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment