pybind11/include/pybind11
Bruce Merry 46dbee7d42 Avoid explicitly resetting a std::[experimental::]optional
Now that #851 has removed all multiple uses of a caster, it can just use
the default-constructed value with needing a reset. This fixes two
issues:

1. With std::experimental::optional (at least under GCC 5.4), the `= {}`
would construct an instance of the optional type and then move-assign
it, which fails if the value type isn't move-assignable.

2. With older versions of Boost, the `= {}` could fail because it is
ambiguous, allowing construction of either `boost::none` or the value
type.
2017-05-27 23:52:23 +02:00
..
attr.h Allow py::arg().none(false) argument attribute 2017-05-24 13:10:57 -04:00
buffer_info.h Now shape, size, ndims and itemsize are also signed integers. 2017-05-08 01:50:21 +02:00
cast.h vectorize: pass-through of non-vectorizable args 2017-05-24 20:43:41 -04:00
chrono.h Fix for floating point durations 2017-03-11 23:04:16 -04:00
class_support.h Style cleanup of javadoc-style comments 2017-05-22 12:06:16 -04:00
common.h vectorize: pass-through of non-vectorizable args 2017-05-24 20:43:41 -04:00
complex.h Allow std::complex field with PYBIND11_NUMPY_DTYPE (#831) 2017-05-10 11:36:24 +02:00
descr.h Fix gcc 7 warning 2017-05-10 10:42:23 -04:00
eigen.h Add and use detail::remove_reference_t 2017-05-24 20:43:41 -04:00
eval.h Add py::exec() as a shortcut for py::eval<py::eval_statements>() 2017-05-08 20:46:16 +02:00
functional.h Defer None loading to second pass 2017-05-10 10:44:19 -04:00
numpy.h vectorize: pass-through of non-vectorizable args 2017-05-24 20:43:41 -04:00
operators.h Define both __div__ and __truediv__ for Python 2 2017-05-21 19:15:25 -04:00
options.h Provide more control over automatic generation of docstrings (#486) 2016-11-15 12:38:05 +01:00
pybind11.h Add and use detail::remove_reference_t 2017-05-24 20:43:41 -04:00
pytypes.h Add and use detail::remove_reference_t 2017-05-24 20:43:41 -04:00
stl_bind.h Fix invalid memory access in vector insert method 2017-05-25 10:51:28 -04:00
stl.h Avoid explicitly resetting a std::[experimental::]optional 2017-05-27 23:52:23 +02:00
typeid.h minor cleanups in common.h; updated author info and copyright year 2016-04-18 10:53:38 +02:00