mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-21 20:55:11 +00:00
mention PR #1015 in changelog
This commit is contained in:
parent
4bacd7dec1
commit
b12a9d67c6
@ -199,6 +199,20 @@ v2.2.0 (Not yet released)
|
||||
py::class_<Derived>(m, "Derived")
|
||||
.def("foo", &Derived::foo); // function is actually from `Base`
|
||||
|
||||
* The implementation of ``py::init<>`` now uses C++11 brace initialization
|
||||
syntax to construct instances, which permits binding implicit constructors of
|
||||
aggregate types. `#1015 <https://github.com/pybind/pybind11/pull/1015>`_.
|
||||
|
||||
.. code-block:: cpp
|
||||
|
||||
struct Aggregate {
|
||||
int a;
|
||||
std::string b;
|
||||
};
|
||||
|
||||
py::class_<Aggregate>(m, "Aggregate")
|
||||
.def(py::init<int, const std::string &>());
|
||||
|
||||
* Fixed issues with multiple inheritance with offset base/derived pointers.
|
||||
`#812 <https://github.com/pybind/pybind11/pull/812>`_,
|
||||
`#866 <https://github.com/pybind/pybind11/pull/866>`_,
|
||||
|
Loading…
Reference in New Issue
Block a user