diff options
-rw-r--r-- | arm_compute/core/Error.h | 6 | ||||
-rw-r--r-- | src/core/Error.cpp | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/arm_compute/core/Error.h b/arm_compute/core/Error.h index 277db9d64d..bd80aa4162 100644 --- a/arm_compute/core/Error.h +++ b/arm_compute/core/Error.h @@ -25,7 +25,6 @@ #define __ARM_COMPUTE_ERROR_H__ #include <stdarg.h> -#include <stdexcept> #include <string> namespace arm_compute @@ -97,10 +96,7 @@ public: private: /** Internal throwing function */ - [[noreturn]] void internal_throw_on_error() - { - throw std::runtime_error(_description); - } + [[noreturn]] void internal_throw_on_error(); private: ErrorCode _code; diff --git a/src/core/Error.cpp b/src/core/Error.cpp index 3b0a012f5f..be362bb7cf 100644 --- a/src/core/Error.cpp +++ b/src/core/Error.cpp @@ -56,3 +56,7 @@ void arm_compute::error(const char *function, const char *file, const int line, va_end(args); throw std::runtime_error(err.description()); } +void Error::internal_throw_on_error() +{ + throw std::runtime_error(_description); +} |