From 5c11b1c871bddc00378cd008eb91d2315934344e Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Fri, 9 Nov 2018 10:08:02 +0100 Subject: [PATCH] fix for MSVC (alignof(T) for abstract T is not allowed) --- include/pybind11/pybind11.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pybind11/pybind11.h b/include/pybind11/pybind11.h index 3fb122191..9dd71e4d6 100644 --- a/include/pybind11/pybind11.h +++ b/include/pybind11/pybind11.h @@ -1055,7 +1055,7 @@ public: record.name = name; record.type = &typeid(type); record.type_size = sizeof(conditional_t); - record.type_align = alignof(conditional_t); + record.type_align = alignof(conditional_t&); record.holder_size = sizeof(holder_type); record.init_instance = init_instance; record.dealloc = dealloc;