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

This commit is contained in:
Wenzel Jakob 2016-06-22 14:02:27 +02:00
parent f88af0c127
commit 4a53d38bd4

View File

@ -40,7 +40,9 @@ public:
inline pybind11::str str() const;
template <typename T> T cast() const;
template <typename ... Args>
#if __cplusplus > 201103L
[[deprecated("call(...) was deprecated in favor of operator()(...)")]]
#endif
object call(Args&&... args) const;
template <typename ... Args> object operator()(Args&&... args) const;
inline object operator()(detail::args_proxy args) const;