mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-22 22:01:08 +00:00
Move 'using common::Status;' from common.h to status.h.
This commit is contained in:
parent
3ff75fa05f
commit
c270ea148a
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue