From bf3cb670f30bc2c5dfec102b147b41146381d769 Mon Sep 17 00:00:00 2001 From: Matthias Diener Date: Mon, 18 Jul 2022 21:34:29 -0500 Subject: [PATCH] fix compilation error with pybind 2.10 --- src/wrap_constants.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wrap_constants.cpp b/src/wrap_constants.cpp index 77dbc25f..e313a340 100644 --- a/src/wrap_constants.cpp +++ b/src/wrap_constants.cpp @@ -106,7 +106,7 @@ void pyopencl_expose_constants(py::module &m) #define DECLARE_EXC(NAME, BASE) \ static py::exception CL##NAME(m, #NAME, BASE); - DECLARE_EXC(Error, NULL); + DECLARE_EXC(Error, nullptr); DECLARE_EXC(MemoryError, CLError.ptr()); DECLARE_EXC(LogicError, CLError.ptr()); DECLARE_EXC(RuntimeError, CLError.ptr()); -- GitLab