We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d9441d commit a864f21Copy full SHA for a864f21
include/pybind11/numpy.h
@@ -66,7 +66,7 @@ class LazyInitializeAtLeastOnceDestroyNever {
66
assert(PyGILState_Check());
67
auto value = initialize();
68
if (!initialized_) {
69
- new (reinterpret_cast<T *>(value_storage_)) T(std::move(value));
+ ::new (value_storage_) T(std::move(value));
70
initialized_ = true;
71
}
72
0 commit comments