diff --git a/include/boost/python/class.hpp b/include/boost/python/class.hpp index b5ba650c..cdc17104 100644 --- a/include/boost/python/class.hpp +++ b/include/boost/python/class.hpp @@ -73,10 +73,10 @@ namespace detail template struct assert_default_constructible { - static int check2(T const*); + static int check2(T const&); static int check() { - return sizeof(check2(&T())); + return sizeof(check2(T())); } }; }