Skip to content

Commit 6fdc174

Browse files
Merge pull request #1595 from IntelPython/eliminated-uncessary-copies-in-dpctl-capi
Avoid superfluous copy of dpctl_capi struct
2 parents 1fac073 + 1b19fb7 commit 6fdc174

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dpctl/apis/include/dpctl4pybind11.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,9 @@ class dpctl_capi
402402

403403
dpctl_capi(dpctl_capi const &) = default;
404404
dpctl_capi &operator=(dpctl_capi const &) = default;
405+
dpctl_capi &operator=(dpctl_capi &&) = default;
405406

406-
static dpctl_capi lookup()
407+
static dpctl_capi &lookup()
407408
{
408409
static dpctl_capi api;
409410
return api;

0 commit comments

Comments
 (0)