From ac6cb91a343c388669308ece8e98940b9a00c28c Mon Sep 17 00:00:00 2001 From: Omar Awile Date: Mon, 10 Jun 2019 21:56:17 +0200 Subject: [PATCH] Fixed small typo (#1633) I think this particular method binding should not be done with `PYBIND11_OVERLOAD_PURE` but instead `PYBIND11_OVERLOAD`. --- docs/advanced/classes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/advanced/classes.rst b/docs/advanced/classes.rst index c7dbc6762..fe494591e 100644 --- a/docs/advanced/classes.rst +++ b/docs/advanced/classes.rst @@ -239,7 +239,7 @@ override the ``name()`` method): class PyDog : public Dog { public: using Dog::Dog; // Inherit constructors - std::string go(int n_times) override { PYBIND11_OVERLOAD_PURE(std::string, Dog, go, n_times); } + std::string go(int n_times) override { PYBIND11_OVERLOAD(std::string, Dog, go, n_times); } std::string name() override { PYBIND11_OVERLOAD(std::string, Dog, name, ); } std::string bark() override { PYBIND11_OVERLOAD(std::string, Dog, bark, ); } };