diff --git a/include/pybind11/pytypes.h b/include/pybind11/pytypes.h index ad9029b1e..207e57d1c 100644 --- a/include/pybind11/pytypes.h +++ b/include/pybind11/pytypes.h @@ -40,7 +40,9 @@ public: inline pybind11::str str() const; template T cast() const; template + #if __cplusplus > 201103L [[deprecated("call(...) was deprecated in favor of operator()(...)")]] + #endif object call(Args&&... args) const; template object operator()(Args&&... args) const; inline object operator()(detail::args_proxy args) const;