pybind11/docs
Jason Rhinelander ec62d977c4 Implement py::init_alias<>() constructors
This commit adds support for forcing alias type initialization by
defining constructors with `py::init_alias<arg1, arg2>()` instead of
`py::init<arg1, arg2>()`.  Currently py::init<> only results in Alias
initialization if the type is extended in python, or the given
arguments can't be used to construct the base type, but can be used to
construct the alias.  py::init_alias<>, in contrast, always invokes the
constructor of the alias type.

It looks like this was already the intention of
`py::detail::init_alias`, which was forward-declared in
86d825f330, but was apparently never
finished: despite the existance of a .def method accepting it, the
`detail::init_alias` class isn't actually defined anywhere.

This commit completes the feature (or possibly repurposes it), allowing
declaration of classes that will always initialize the trampoline which
is (as I argued in #397) sometimes useful.
2016-09-09 03:04:09 -04:00
..
_static documentation improvements 2016-04-26 23:48:55 +02:00
advanced.rst Implement py::init_alias<>() constructors 2016-09-09 03:04:09 -04:00
basics.rst basics.rst: minor table update for Eigen types 2016-09-06 14:13:35 +09:00
benchmark.py Much more efficient generation of function signatures, updated docs 2016-01-17 22:31:15 +01:00
benchmark.rst ..mention in benchmark docs as well 2016-08-19 09:38:14 +02:00
changelog.rst Document calling function with keyword arguments from C++ 2016-09-06 16:41:50 +02:00
classes.rst Allow passing base types as a template parameter 2016-09-06 20:34:24 -04:00
compiling.rst minor doc & style fixes 2016-09-06 13:02:29 +09:00
conf.py Fix sphinx doc missing code blocks and warnings 2016-08-16 01:30:58 +02:00
faq.rst minor doc & style fixes 2016-09-06 13:02:29 +09:00
index.rst minor FAQ edits, referenced cppimport project 2016-05-17 10:47:52 +02:00
intro.rst ..mention in benchmark docs as well 2016-08-19 09:38:14 +02:00
limitations.rst updated limitations section 2016-06-30 14:46:11 +02:00
Makefile took a stab at some documentation 2015-10-13 03:16:44 +02:00
pybind11_vs_boost_python1.png documentation improvements 2016-04-28 15:32:07 +02:00
pybind11_vs_boost_python1.svg Much more efficient generation of function signatures, updated docs 2016-01-17 22:31:15 +01:00
pybind11_vs_boost_python2.png documentation improvements 2016-04-28 15:32:07 +02:00
pybind11_vs_boost_python2.svg Much more efficient generation of function signatures, updated docs 2016-01-17 22:31:15 +01:00
pybind11-logo.png Very minor documentation fixes, updated logo 2016-01-17 22:31:15 +01:00
reference.rst complete rewrite of eval/exec patch 2016-07-08 10:52:10 +02:00
release.rst updated changelog with v1.8.1, updated release instructions 2016-07-12 18:03:17 +02:00