Skip to content

Commit

Permalink
Add default ctor to Value explicitely as the base ctor does not propa…
Browse files Browse the repository at this point in the history
…gate with C++14
  • Loading branch information
yuslepukhin committed Dec 20, 2024
1 parent 6fa0c00 commit 6aee00c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/onnxruntime/core/session/onnxruntime_cxx_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -1298,6 +1298,7 @@ struct Value : detail::ValueImpl<OrtValue> {
using OrtSparseValuesParam = detail::OrtSparseValuesParam;
using Shape = detail::Shape;

Value() = default;
explicit Value(std::nullptr_t) {} ///< Create an empty Value object, must be assigned a valid one to be used
Value(Value&&) = default;
Value& operator=(Value&&) = default;
Expand Down

0 comments on commit 6aee00c

Please sign in to comment.