Skip to content

Commit 4764cec

Browse files
Import error_already_set into namespace
Import pybind11::error_already_set into dpctl::memory namespace to work-around compilation error due to use of not-fully qualified identified in PYBIND11_OBJECT_CVT macro
1 parent 35295bf commit 4764cec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dpctl/apis/include/dpctl4pybind11.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,10 @@ struct dpctl_api
302302
namespace memory
303303
{
304304

305+
// since PYBIND11_OBJECT_CVT uses error_already_set without namespace,
306+
// this allows to avoid compilation error
307+
using pybind11::error_already_set;
308+
305309
class usm_memory : public py::object
306310
{
307311
public:

0 commit comments

Comments
 (0)