From 4a53d38bd4109afdfe15279658a9a8ed1e3b4846 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Wed, 22 Jun 2016 14:02:27 +0200 Subject: [PATCH] only deprecate call() function if C++14 is available --- include/pybind11/pytypes.h | 2 ++ 1 file changed, 2 insertions(+) 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;