Skip to content

Commit 1b19fb7

Browse files
Avoid superfluous copy of dpctl_capi struct
1 parent 1fac073 commit 1b19fb7

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)