From fe755dce12766820a99eefbde32d6ceb0a828ca8 Mon Sep 17 00:00:00 2001 From: Dustin Spicuzza Date: Sun, 24 Nov 2019 02:36:48 -0500 Subject: [PATCH 1/2] Add AutoWIG to list of binding generators (#1990) * Add AutoWIG to list of binding generators --- docs/compiling.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/compiling.rst b/docs/compiling.rst index c50c7d8afb..496410ca25 100644 --- a/docs/compiling.rst +++ b/docs/compiling.rst @@ -287,3 +287,11 @@ code by introspecting existing C++ codebases using LLVM/Clang. See the [binder]_ documentation for details. .. [binder] http://cppbinder.readthedocs.io/en/latest/about.html + +[AutoWIG]_ is a Python library that wraps automatically compiled libraries into +high-level languages. It parses C++ code using LLVM/Clang technologies and +generates the wrappers using the Mako templating engine. The approach is automatic, +extensible, and applies to very complex C++ libraries, composed of thousands of +classes or incorporating modern meta-programming constructs. + +.. [AutoWIG] https://github.com/StatisKit/AutoWIG From 32af149559512912d74bf809935c94071e45f28b Mon Sep 17 00:00:00 2001 From: Antoine Prouvost Date: Sat, 18 Jan 2020 16:11:21 -0500 Subject: [PATCH 2/2] Update binding example for virtual function doc. --- docs/advanced/classes.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/advanced/classes.rst b/docs/advanced/classes.rst index ae5907deed..a0eff230ac 100644 --- a/docs/advanced/classes.rst +++ b/docs/advanced/classes.rst @@ -298,8 +298,8 @@ The classes are then registered with pybind11 using: .. code-block:: cpp py::class_> animal(m, "Animal"); - py::class_> dog(m, "Dog"); - py::class_> husky(m, "Husky"); + py::class_> dog(m, "Dog"); + py::class_> husky(m, "Husky"); // ... add animal, dog, husky definitions Note that ``Husky`` did not require a dedicated trampoline template class at