You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: ambiguous overload for 'operator=' (operand types are 'std::unique_ptr<int>' and 'UniquePtrAdapter<int>')
1178 | ptr->p = adapter0;
= for unique_ptr has 2 overloads : one taking a std::unique_ptr && and another taking a const std::unique_ptr &. And the adapter has cast overloads for both.
What's the best way to handle this ?
(case seen in Pytorch 2.1)
The text was updated successfully, but these errors were encountered:
parses to this getter and setter:
Compiling the JNI triggers:
=
forunique_ptr
has 2 overloads : one taking astd::unique_ptr &&
and another taking aconst std::unique_ptr &
. And the adapter has cast overloads for both.What's the best way to handle this ?
(case seen in Pytorch 2.1)
The text was updated successfully, but these errors were encountered: