mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 14:45:12 +00:00
only deprecate call() function if C++14 is available
This commit is contained in:
parent
f88af0c127
commit
4a53d38bd4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user