Johan Mabille
eaced3aaa9
typo
2016-02-17 23:37:24 +01:00
Sylvain Corlay
edb945d45d
gcc compilation issue fixed
2016-02-17 23:37:24 +01:00
Johan Mabille
2d0ff0e777
gcc compilation issue fixed
2016-02-17 23:37:24 +01:00
Johan Mabille
7e8ece8f3d
Crash for scalar inputs fixed
2016-02-17 23:37:24 +01:00
Johan Mabille
f41e1125c6
Broadcasting like numpy
2016-02-17 23:37:23 +01:00
Johan Mabille
7fc85f1d7c
Multi iterator
2016-02-17 23:37:23 +01:00
Wenzel Jakob
f8584b630b
quench some warnings in operators.h
2016-02-16 13:36:04 +01:00
Wenzel Jakob
0880294924
support unordered set/map data structures ( fixes #100 )
2016-02-13 00:22:26 +01:00
Wenzel Jakob
4fee179900
better debug info when arg::operator=() fails
2016-02-09 11:31:20 +01:00
Wenzel Jakob
4f8902a931
starting development cycle for v1.3
2016-02-07 17:33:12 +01:00
Wenzel Jakob
8ed2808239
pybind11, version 1.2
2016-02-07 17:32:37 +01:00
Wenzel Jakob
10c74c6f34
transparent std::array conversion ( fixes #97 )
2016-02-07 16:36:51 +01:00
Wenzel Jakob
1f7a8096b7
support for string default arguments specified as static arrays
2016-02-07 13:29:17 +01:00
Wenzel Jakob
e206564ebf
removed a redundant tag
2016-02-04 23:29:29 +01:00
Wenzel Jakob
a65017902e
set __module__ attribute of functions ( fixes #95 )
2016-02-04 23:03:58 +01:00
Wenzel Jakob
b6cf75d66a
address issue with std::type_info across module boundaries ( fixes #86 )
2016-01-29 11:39:32 +01:00
Felipe Lema
2547ca468c
deal with Python versions compiled without thread support ( fixes #81 )
2016-01-28 18:16:42 +01:00
Wenzel Jakob
15f6a0030e
enum comparison and conversion operations ( closes #80 )
2016-01-24 14:05:12 +01:00
Wenzel Jakob
fa92f6796f
Merge pull request #76 from ax3l/fix-unusedVar
...
Close #69 Unused Var: Warning
2016-01-21 19:03:51 +01:00
Axel Huebl
30214adc0a
Fix #75 <complex> may define macro I
...
Fix #75 as described by undefining the macro `I` from `<complex>`
if defined (as in `glibc`).
This seems to be the only include of it.
2016-01-21 17:44:43 +01:00
Axel Huebl
2dd5e3bc2a
Close #69 Unused Var: Warning
...
Close #69
[This](http://stackoverflow.com/a/3418951 )
stackoverflow post recommended
[that](http://herbsutter.com/2009/10/18/mailbag-shutting-up-compiler-warnings/ )
Herb Sutter blog post with a general and portable solution and it
works great! :)
2016-01-21 17:18:47 +01:00
Wenzel Jakob
80a06745d3
hopefully final(?) adjustment to detail::is_copy_constructible ( fixes #70 )
2016-01-20 11:34:07 +01:00
Wenzel Jakob
b670b77060
minor adjustment to detail::is_copy_constructible ( fixes #70 )
2016-01-20 01:26:43 +01:00
Wenzel Jakob
88d1d04132
another attempt to fix the offsetof warnings
2016-01-20 01:26:42 +01:00
Axel Huebl
7cd569c703
Fix Compile Error: str Naming
...
This fixes a build error compiling with `nvcc/7.5` + `gcc/4.9.2`
causing a
```
./include/pybind11/pybind11.h(952): here
./include/pybind11/pytypes.h: In member function ‘pybind11::str pybind11::handle::str() const’:
./include/pybind11/pytypes.h:269:8: error: expected primary-expression before ‘class’
return pybind11::str(str, false);
^
./include/pybind11/pytypes.h:269:8: error: expected ‘;’ before ‘class’
./include/pybind11/pytypes.h:269:8: error: expected primary-expression before ‘class’
```
2016-01-19 01:26:52 +01:00
Wenzel Jakob
260bc58f57
improved SFINAE in type_caster_generic ( closes #70 )
2016-01-18 22:15:20 +01:00
Wenzel Jakob
92b2f452f0
fix regression in stl.h
2016-01-18 22:15:20 +01:00
Wenzel Jakob
2983d5e1de
quench warnings ( closes #69 )
2016-01-18 22:15:16 +01:00
Wenzel Jakob
48548ea4a5
general cleanup of the codebase
...
- new pybind11::base<> attribute to indicate a subclass relationship
- unified infrastructure for parsing variadic arguments in class_ and cpp_function
- use 'handle' and 'object' more consistently everywhere
2016-01-17 22:31:15 +01:00
Wenzel Jakob
1ae77fe4d3
added a changelog file and version defines
2016-01-17 22:31:15 +01:00
Wenzel Jakob
53b26549d0
python 3.2 compatiblity ( closes #56 )
2016-01-17 22:31:15 +01:00
Wenzel Jakob
ba0732e7dc
fixed a terrible bug in def_property_static and switched to the faster PyObject_CallFunctionObjArgs API call
2016-01-17 22:31:15 +01:00
Wenzel Jakob
678d787ca4
do more work with classes from pytypes.h (especially for STL container casting)
2016-01-17 22:31:15 +01:00
Wenzel Jakob
d561cb010c
fully moved __pybind11__ Python attributes to the C++ side, cleanup & documentation pass over the main header file
2016-01-17 22:31:15 +01:00
Wenzel Jakob
e45b29047a
numpy.h: fixed a leak, added some comments to buffer_info
2016-01-17 22:31:15 +01:00
Wenzel Jakob
d33361a6d7
moved lifetime management of Py_buffer to pybind11::buffer_info, renamed count->size to match NumPy naming ( fixes #34 )
2016-01-17 22:31:15 +01:00
Wenzel Jakob
95d18691c9
minor fixes & removed a leak when freeing functions
2016-01-17 22:31:15 +01:00
Wenzel Jakob
b2c2c79240
improved handling of shared/smart pointers
...
Previously, pybind11 required classes using std::shared_ptr<> to derive
from std::enable_shared_from_this<> (or compilation failures would ensue).
Everything now also works for classes that don't do this, assuming that
some basic rules are followed (e.g. never passing "raw" pointers of
instances manged by shared pointers). The safer
std::enable_shared_from_this<> approach continues to be supported.
2016-01-17 22:31:15 +01:00
Wenzel Jakob
2ca07de83c
minor fix for PYBIND11_OBJECT_CVT
2016-01-17 22:31:15 +01:00
Wenzel Jakob
5f218b3f2c
keep_alive call policy (analogous to Boost.Python's with_custodian_and_ward, fixes #62 )
2016-01-17 22:31:15 +01:00
Wenzel Jakob
87187afe91
switch NumPy array to object API, avoid unnecessary copy operation in vectorize
2016-01-17 22:31:15 +01:00
Wenzel Jakob
87dfad6544
avoid naming clashes with numpy ( fixes #36 )
2016-01-17 22:31:15 +01:00
Wenzel Jakob
4177ed4336
renamed decay -> intrinsic_type ( fixes #59 )
2016-01-17 22:31:15 +01:00
Wenzel Jakob
82ffd40870
type of void fixed (None -> NoneType)
2016-01-17 22:31:15 +01:00
Wenzel Jakob
56e9f4942b
improved signature names for subclasses of pybind11::handle
2016-01-17 22:31:15 +01:00
Wenzel Jakob
d0325bbd97
switched a few admissible cases from PyTuple_Set/GetItem -> PyTuple_SET/GET_ITEM
2016-01-17 22:31:15 +01:00
Wenzel Jakob
27e8e1066b
added new type pybind11::bytes, cleanup of various macros ( fixes #49 )
2016-01-17 22:31:15 +01:00
Wenzel Jakob
4c1a6be4bd
minor cleanups in numpy.h, updated gitignore file for ninja
2016-01-17 22:31:15 +01:00
Wenzel Jakob
f4671f6a04
use RAII in dispatcher to avoid refcount leaks in certain circumstances when handling exceptions
2016-01-17 22:31:15 +01:00
Wenzel Jakob
66c9a40213
Much more efficient generation of function signatures, updated docs
...
This modification taps into some newer C++14 features (if present) to
generate function signatures considerably more efficiently at compile
time rather than at run time.
With this change, pybind11 binaries are now *2.1 times* smaller compared
to the Boost.Python baseline in the benchmark. Compilation times get a
nice improvement as well.
Visual Studio 2015 unfortunately doesn't implement 'constexpr' well
enough yet to support this change and uses a runtime fallback.
2016-01-17 22:31:15 +01:00