diff --git a/include/pybind11/cast.h b/include/pybind11/cast.h index cdc43a6a66..5a92b738ea 100644 --- a/include/pybind11/cast.h +++ b/include/pybind11/cast.h @@ -1565,16 +1565,14 @@ struct function_call { }; // See PR #5396 for the discussion that led to this -template +template struct is_same_or_base_of : std::is_same {}; // Only evaluate is_base_of if Derived is complete. // It will raise a compiler error if Derived is not complete. -template -struct is_same_or_base_of : any_of< - std::is_same, - std::is_base_of -> {}; +template +struct is_same_or_base_of + : any_of, std::is_base_of> {}; /// Helper class which loads arguments for C++ functions called from Python template