Add noexcept to cxx api (#1448)

This commit is contained in:
Changming Sun 2019-07-20 08:33:04 -07:00 committed by GitHub
parent 995ec04c7b
commit df3a157dd1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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