From 67755adfd840f31209b46ffd6d0263ea129d88ef Mon Sep 17 00:00:00 2001 From: Changming Sun Date: Wed, 30 Oct 2019 15:01:13 -0700 Subject: [PATCH] Bug Fix: NodeArg class has a move constructor but doesn't have a move assignment operator --- include/onnxruntime/core/graph/node_arg.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/onnxruntime/core/graph/node_arg.h b/include/onnxruntime/core/graph/node_arg.h index f1f111c27e..179405a737 100644 --- a/include/onnxruntime/core/graph/node_arg.h +++ b/include/onnxruntime/core/graph/node_arg.h @@ -39,6 +39,7 @@ class NodeArg { const ONNX_NAMESPACE::TypeProto* p_arg_type); NodeArg(NodeArg&&) = default; + NodeArg& operator=(NodeArg&& other) = default; /** Gets the name. */ const std::string& Name() const noexcept; @@ -89,8 +90,6 @@ class NodeArg { void SetType(ONNX_NAMESPACE::DataType p_type); void SetType(const ONNX_NAMESPACE::TypeProto& type_proto); - NodeArg& operator=(NodeArg&& other) = delete; - // Node arg PType. ONNX_NAMESPACE::DataType type_;