- 10 Jul, 2016 1 commit
-
-
Wenzel Jakob authored
-
- 09 Jul, 2016 1 commit
-
-
Wenzel Jakob authored
-
- 08 Jul, 2016 5 commits
-
-
Wenzel Jakob authored
-
Wenzel Jakob authored
-
Wenzel Jakob authored
-
Wenzel Jakob authored
-
Klemens Morgenstern authored
-
- 07 Jul, 2016 2 commits
-
-
Jason Rhinelander authored
Otherwise this would create unknown option warnings under g++ < 6.
-
Jason Rhinelander authored
GCC-6 adds a -Wplacement-new warning that warns for placement-new into a space that is too small, which is sometimes being triggered here (e.g. example5 always generates the warning under g++-6). It's a false warning, however: the line immediately before just checked the size, and so this line is never going to actually be reached in the cases where the GCC warning is being triggered. This localizes the warning disabling just to this one spot as there are other placement-new uses in pybind11 where this warning could warn about legitimate future problems.
-
- 06 Jul, 2016 1 commit
-
-
Jason Rhinelander authored
This commit adds an additional _ template function for compile-time selection between two description strings. This in turn allows the elimination of needing two name() methods in type_caster<arithmetic types> and type_caster<eigen types>, which allows them to start using PYBIND11_TYPE_CASTER instead, simplifying their code by eliminating all the code that they are duplicating from the macro.
-
- 05 Jul, 2016 1 commit
-
-
Ben North authored
In eigen.h, type_caster<Type>::load(): For the 'ndim == 1' case, use the 'InnerStride' type because there is only an inner stride for a vector. Choose between (n_elts x 1) or (1 x n_elts) according to whether we're constructing a Vector or a RowVector.
-
- 01 Jul, 2016 4 commits
-
-
Merlin Nimier-David authored
-
Wenzel Jakob authored
-
Wenzel Jakob authored
-
hbruintjes authored
Allows const types to be used by shared_ptr
-
- 27 Jun, 2016 1 commit
-
-
Wenzel Jakob authored
-
- 22 Jun, 2016 2 commits
-
-
Wenzel Jakob authored
-
Wenzel Jakob authored
-
- 17 Jun, 2016 2 commits
-
-
Ivan Smirnov authored
-
Ivan Smirnov authored
-
- 15 Jun, 2016 2 commits
-
-
Jerry Gamache authored
-
Jerry Gamache authored
-
- 14 Jun, 2016 1 commit
-
-
Wenzel Jakob authored
-
- 03 Jun, 2016 2 commits
-
-
Dean Moldovan authored
-
Dean Moldovan authored
-
- 02 Jun, 2016 1 commit
-
-
Wenzel Jakob authored
-
- 01 Jun, 2016 1 commit
-
-
Dean Moldovan authored
- Conversion warning on clang: 'long' to 'size_t' - Unused variable warning on MSVC
-
- 31 May, 2016 1 commit
-
-
Wenzel Jakob authored
-
- 30 May, 2016 3 commits
-
-
Wenzel Jakob authored
-
Wenzel Jakob authored
-
Wenzel Jakob authored
-
- 29 May, 2016 1 commit
-
-
Wenzel Jakob authored
-
- 28 May, 2016 1 commit
-
-
Boris Schäling authored
-
- 26 May, 2016 4 commits
-
-
Boris Schäling authored
-
Wenzel Jakob authored
-
Wenzel Jakob authored
Sergey Lyskov pointed out that the trampoline mechanism used to override virtual methods from within Python caused unnecessary overheads when instantiating the original (i.e. non-extended) class. This commit removes this inefficiency, but some syntax changes were needed to achieve this. Projects using this features will need to make a few changes: In particular, the example below shows the old syntax to instantiate a class with a trampoline: class_<TrampolineClass>("MyClass") .alias<MyClass>() .... This is what should be used now: class_<MyClass, std::unique_ptr<MyClass, TrampolineClass>("MyClass") .... Importantly, the trampoline class is now specified as the *third* argument to the class_ template, and the alias<..>() call is gone. The second argument with the unique pointer is simply the default holder type used by pybind11. -
Wenzel Jakob authored
-
- 25 May, 2016 1 commit
-
-
Yung-Yu Chen authored
args was derived from list, but cpp_function::dispatcher sends a tuple to it->impl (line #346 and #392 in pybind11.h). As a result args::size() and args::operator[] don't work at all. On my mac args::size() returns -1. Making args a subclass of tuple fixes it.
-
- 24 May, 2016 2 commits
-
-
Wenzel Jakob authored
-
Wenzel Jakob authored
-