mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-02-06 23:56:59 +08: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;
|
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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user