Commit 4a53d38b by Wenzel Jakob

only deprecate call() function if C++14 is available

parent f88af0c1
...@@ -40,7 +40,9 @@ public: ...@@ -40,7 +40,9 @@ public:
inline pybind11::str str() const; inline pybind11::str str() const;
template <typename T> T cast() const; template <typename T> T cast() const;
template <typename ... Args> template <typename ... Args>
#if __cplusplus > 201103L
[[deprecated("call(...) was deprecated in favor of operator()(...)")]] [[deprecated("call(...) was deprecated in favor of operator()(...)")]]
#endif
object call(Args&&... args) const; object call(Args&&... args) const;
template <typename ... Args> object operator()(Args&&... args) const; template <typename ... Args> object operator()(Args&&... args) const;
inline object operator()(detail::args_proxy args) const; inline object operator()(detail::args_proxy args) const;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment