mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-07 00:13:17 +00:00
Add noexcept to cxx api (#1448)
This commit is contained in:
parent
995ec04c7b
commit
df3a157dd1
1 changed files with 2 additions and 2 deletions
|
|
@ -73,8 +73,8 @@ struct Base {
|
|||
|
||||
protected:
|
||||
Base(const Base&) = delete;
|
||||
Base(Base&& v) : p_{v.p_} { v.p_ = nullptr; }
|
||||
void operator=(Base&& v) {
|
||||
Base(Base&& v) noexcept : p_{v.p_} { v.p_ = nullptr; }
|
||||
void operator=(Base&& v) noexcept {
|
||||
OrtRelease(p_);
|
||||
p_ = v.p_;
|
||||
v.p_ = nullptr;
|
||||
|
|
|
|||
Loading…
Reference in a new issue