Skip to content

Commit

Permalink
fix the template build error
Browse files Browse the repository at this point in the history
  • Loading branch information
wenbingl committed Nov 19, 2024
1 parent 1b31d7a commit 602046b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/ortx_cpp_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ class OrtxObjectPtr : public std::unique_ptr<T, OrtxDeleter<T>> {
*/
extError_t Code() const { return err_; }

template <typename T>
struct PointerAssigner {
OrtxObject* obj_{};
OrtxObjectPtr<T>& ptr_;
Expand All @@ -83,7 +82,7 @@ class OrtxObjectPtr : public std::unique_ptr<T, OrtxDeleter<T>> {
* object can be used to assign a pointer value to the OrtxObjectPtr.
*
*/
PointerAssigner<T> ToBeAssigned() { return PointerAssigner<T>{*this}; }
PointerAssigner ToBeAssigned() { return PointerAssigner{*this}; }

private:
extError_t err_ = kOrtxOK; /**< The error code associated with the creation of the OrtxObject. */
Expand Down

0 comments on commit 602046b

Please sign in to comment.