Skip to content

Commit

Permalink
json dependency fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pablito25sp committed Jun 10, 2021
1 parent f1bb903 commit 0ce5e52
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions deps/libsdptransform/include/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19421,9 +19421,7 @@ class basic_json

// add element to array (move semantics)
m_value.array->push_back(std::move(val));
// invalidate object: mark it null so we do not call the destructor
// cppcheck-suppress accessMoved
val.m_type = value_t::null;
// if val is moved from, basic_json move constructor marks it null so we do not call the destructor
}

/*!
Expand Down

0 comments on commit 0ce5e52

Please sign in to comment.