pybind11/docs
Jason Rhinelander 3f1ff3f4d1 Adds automatic casting on assignment of non-pyobject types (#551)
This adds automatic casting when assigning to python types like dict,
list, and attributes.  Instead of:

    dict["key"] = py::cast(val);
    m.attr("foo") = py::cast(true);
    list.append(py::cast(42));

you can now simply write:

    dict["key"] = val;
    m.attr("foo") = true;
    list.append(42);

Casts needing extra parameters (e.g. for a non-default rvp) still
require the py::cast() call. set::add() is also supported.

All usage is channeled through a SFINAE implementation which either just returns or casts. 

Combined non-converting handle and autocasting template methods via a
helper method that either just returns (handle) or casts (C++ type).
2016-12-12 23:42:52 +01:00
..
_static documentation improvements 2016-04-26 23:48:55 +02:00
advanced add valarray to documentation, update docutils on travis 2016-12-09 16:08:16 +01:00
basics.rst Adds automatic casting on assignment of non-pyobject types (#551) 2016-12-12 23:42:52 +01: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 Add default and converting constructors for all concrete Python types 2016-11-17 08:55:42 +01:00
classes.rst Add syntax sugar for resolving overloaded functions (#541) 2016-12-08 11:07:52 +01: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 added message about recursion limits 2016-11-16 17:37:10 +01:00
index.rst Reorganize documentation 2016-10-20 15:21:34 +02:00
intro.rst ..one more typo 2016-09-21 19:30:23 +02:00
limitations.rst Multiple inheritance support 2016-09-19 13:45:31 +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 Reorganize documentation 2016-10-20 15:21:34 +02:00
release.rst updated changelog with v1.8.1, updated release instructions 2016-07-12 18:03:17 +02:00