- 28 Aug, 2016 1 commit
-
-
Wenzel Jakob authored
-
- 27 Aug, 2016 1 commit
-
-
Nickolai Belakovski authored
-
- 14 Aug, 2016 1 commit
-
-
Ivan Smirnov authored
This is required since format descriptors for string types that were using PYBIND11_DESCR were causing problems on C++14 on Linux. Although this is technically a breaking change, it shouldn't cause problems since the only use of format strings is passing them to buffer_info constructor which expects std::string. Note: for non-structured types, the const char * value is still accessible via ::value for compatibility purpose.
-
- 13 Aug, 2016 6 commits
-
-
Ivan Smirnov authored
-
Ivan Smirnov authored
-
Ivan Smirnov authored
-
Ivan Smirnov authored
The format strings that are known at compile time are now accessible via both ::value and ::format(), and format strings for everything else is accessible via ::format(). This makes it backwards compatible.
-
Ivan Smirnov authored
-
Ivan Smirnov authored
-
- 12 Aug, 2016 1 commit
-
-
Jason Rhinelander authored
This allows exposing a dict-like interface to python code, allowing iteration over keys via: for k in custommapping: ... while still allowing iteration over pairs, so that you can also implement 'dict.items()' functionality which returns a pair iterator, allowing: for k, v in custommapping.items(): ... example-sequences-and-iterators is updated with a custom class providing both types of iteration.
-
- 10 Aug, 2016 1 commit
-
-
Jason Rhinelander authored
reference_internal requires an `instance` field to track the returned reference's parent, but that's just a duplication of what keep_alive<0,1> does, so use a keep alive to do this to eliminate the duplication.
-
- 09 Aug, 2016 1 commit
-
-
Jason Rhinelander authored
The pointer to the first member of a class instance is the same as the pointer to instance itself; pybind11 has some workarounds for this to not track registered instances that have a registered parent with the same address. This doesn't work everywhere, however: issue #328 is a failure of this for a mutator operator which resolves its argument to the parent rather than the child, as is needed in #328. This commit resolves the issue (and restores tracking of same-address instances) by changing registered_instances from an unordered_map to an unordered_multimap that allows duplicate instances for the same pointer to be recorded, then resolves these differences by checking the type of each matched instance when looking up an instance. (A unordered_multimap seems cleaner for this than a unordered_map<list> or similar because, the vast majority of the time, the instance will be unique).
-
- 19 Jul, 2016 1 commit
-
-
Wenzel Jakob authored
-
- 12 Jul, 2016 1 commit
-
-
Wenzel Jakob authored
-
- 11 Jul, 2016 1 commit
-
-
Pim Schellart authored
-
- 01 Jul, 2016 1 commit
-
-
Wenzel Jakob authored
-
- 22 Jun, 2016 1 commit
-
-
Wenzel Jakob authored
-
- 17 Jun, 2016 1 commit
-
-
Ivan Smirnov authored
-
- 14 Jun, 2016 1 commit
-
-
Wenzel Jakob authored
-
- 29 May, 2016 1 commit
-
-
Wenzel Jakob authored
-
- 28 May, 2016 1 commit
-
-
Boris Schäling authored
-
- 26 May, 2016 1 commit
-
-
Boris Schäling authored
-
- 15 May, 2016 2 commits
-
-
Sergey Lyskov authored
Adding Python-style modifiers for vector. Wrapping has_insertion_operator_implementation in _MSC_VER ifdef’s. Adding ‘!=0’ instead of bool cast’s.
-
Wenzel Jakob authored
-
- 11 May, 2016 1 commit
-
-
Johan Mabille authored
-
- 05 May, 2016 1 commit
-
-
Wenzel Jakob authored
-
- 04 May, 2016 1 commit
-
-
Wenzel Jakob authored
This somewhat heavyweight solution will avoid size_t/long long/long/int mismatches on various platforms once and for all. The previous template overloads could e.g. not handle size_t on Darwin. One gotcha: the 'format_descriptor<T>::value()' syntax changed to just 'format_descriptor<T>::value'
-
- 03 May, 2016 1 commit
-
-
Wenzel Jakob authored
-
- 01 May, 2016 1 commit
-
-
Wenzel Jakob authored
-
- 30 Apr, 2016 4 commits
-
-
Wenzel Jakob authored
-
Wenzel Jakob authored
-
Wenzel Jakob authored
-
Wenzel Jakob authored
-
- 26 Apr, 2016 1 commit
-
-
Wenzel Jakob authored
-
- 25 Apr, 2016 6 commits
-
-
Wenzel Jakob authored
-
Wenzel Jakob authored
-
Wenzel Jakob authored
-
Wenzel Jakob authored
-
Wenzel Jakob authored
-
Wenzel Jakob authored
-