Move 'using common::Status;' from common.h to status.h.

This commit is contained in:
edgchen1 2022-08-25 16:39:26 -07:00 committed by Edward Chen
parent 3ff75fa05f
commit c270ea148a
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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