We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d863ee commit ffa3eedCopy full SHA for ffa3eed
include/pybind11/detail/type_caster_base.h
@@ -663,13 +663,13 @@ class type_caster_generic {
663
if (type->operator_new) {
664
vptr = type->operator_new(type->type_size);
665
} else {
666
- #if defined(__cpp_aligned_new) && (!defined(_MSC_VER) || _MSC_VER >= 1912)
+#if defined(__cpp_aligned_new) && (!defined(_MSC_VER) || _MSC_VER >= 1912)
667
if (type->type_align > __STDCPP_DEFAULT_NEW_ALIGNMENT__) {
668
vptr = ::operator new(type->type_size, std::align_val_t(type->type_align));
669
670
-#endif
671
vptr = ::operator new(type->type_size);
672
}
+#endif
673
674
675
value = vptr;
0 commit comments