diff --git a/include/onnxruntime/core/common/common.h b/include/onnxruntime/core/common/common.h index c405bcacca..501634bf32 100644 --- a/include/onnxruntime/core/common/common.h +++ b/include/onnxruntime/core/common/common.h @@ -42,10 +42,6 @@ namespace onnxruntime { using TimePoint = std::chrono::high_resolution_clock::time_point; -// Using statements for common classes that we refer to in ONNXRuntime very often. -// TODO(Task:137) Remove 'using' statements from header files -using common::Status; - #ifdef _WIN32 #define ORT_UNUSED_PARAMETER(x) (x) #else diff --git a/include/onnxruntime/core/common/status.h b/include/onnxruntime/core/common/status.h index b7c36df2b2..bcf058886e 100644 --- a/include/onnxruntime/core/common/status.h +++ b/include/onnxruntime/core/common/status.h @@ -188,4 +188,8 @@ inline std::ostream& operator<<(std::ostream& out, const Status& status) { } } // namespace common + +// make Status directly available in the onnxruntime namespace as it is widely used +using common::Status; + } // namespace onnxruntime