Jan Dohl
ab92eb3765
Fixed py:array constructor from failing for complex types
...
The array(const buffer_info &info) constructor fails when given
complex types since their format string is 'Zd' or 'Zf' which has
a length of two and causes an error here:
if (info.format.size() != 1)
throw std::runtime_error("Unsupported buffer format!");
Fixed by allowing format sizes of one and two.
2015-12-15 04:16:49 +01:00
Wenzel Jakob
62127a27b0
don't allow 'void' or 'void*' as a function argument
2015-12-13 13:09:42 +01:00
Wenzel Jakob
60c36db1c9
generic integer type handling
2015-11-30 12:45:34 +01:00
Wenzel Jakob
7f8d1c20f1
improved int_ constructor
2015-11-29 13:48:16 +01:00
Wenzel Jakob
4ee0f2a19e
add missing instructor for bool_
2015-11-29 13:47:10 +01:00
Wenzel Jakob
e1b113b0d9
ifdef WIN32 -> _WIN32
2015-11-28 14:20:38 +01:00
Wenzel Jakob
6e213c9ca0
improved shared pointer support ( fixes #14 )
2015-11-24 23:18:32 +01:00
Wenzel Jakob
eb7c0b82ec
functional.h: support more kinds of Python functions
2015-11-16 18:39:43 +01:00
Wenzel Jakob
3ee91b2f0a
renamed pybind11::set::insert -> add to match C api naming
2015-11-15 13:03:07 +01:00
Wenzel Jakob
333e889ef2
Improved STL support, support for std::set
2015-11-14 19:04:49 +01:00
Wenzel Jakob
723bc65b27
fix for std::shared_ptr proposed by Vayu ( fixes #8 )
2015-11-12 23:27:20 +01:00
Wenzel Jakob
54289302bc
minor cleanups
2015-10-26 20:10:24 +01:00
Wenzel Jakob
5db63fb746
work around weird macro substitution issue on GCC (fixes issue #7 )
2015-10-22 21:38:32 +02:00
Wenzel Jakob
fa1bfb2ec7
do a fallback search over types to handle incompatible std::type_info* across module boundaries (fixes issue #4 )
2015-10-22 16:04:53 +02:00
Wenzel Jakob
3419ee909f
fix linux 32 bit builds
2015-10-21 11:07:48 +02:00
Wenzel Jakob
ad7bc01d51
fix build on linux
2015-10-20 01:11:17 +02:00
Wenzel Jakob
0fb8528edf
factored out some common functionality to a non-templated parent class
2015-10-19 23:53:22 +02:00
Wenzel Jakob
b1b714023a
consistent macro naming throughout the project
2015-10-18 16:48:30 +02:00
Wenzel Jakob
8f4eb00690
last breaking change: be consistent about the project name
2015-10-15 18:23:56 +02:00