Kirill Kouzoubov
f0708156ee
Fixing gcc warnings when -pedantic is used
...
When using macro PYBIND11_OVERLOAD_PURE with function that doesn't have
arguments gcc complains that
`ISO C99 requires rest arguments to be used`
Adding extra comma after function name seems to work on gcc, not so sure
about msvc in this case.
2016-03-22 20:53:20 +11:00
Kirill Kouzoubov
4fb2471e90
Fixing gcc warning when -pedantic is used
...
Fixing warnings of the 'extra ;' type. One is spurious semicolon after
closing brace of the namespace, other comes from using
PYBIND11_DECLARE_HOLDER_TYPE macro.
2016-03-22 20:43:05 +11:00
Kirill Kouzoubov
ed50e70f8c
Fixing gcc warnings when -pedantic is used
...
Fixing warnings related to casting object pointer to function pointer
and back. Apparently `void*` and `void(*)()` are not the same size on
some weird architectures and gcc complains when casting between the two
when using -pedantic flag.
Work around is to go via uintptr_t. I added helper methods to `cast.h`
and used them in `pybind11.h` and in `numpy.h`. I only tested compilation
with gcc on Linux, but it should be portable to any c++11 compiler.
2016-03-22 20:39:41 +11:00
Wenzel Jakob
84ec78feeb
minor redesign/generalization of def_property mechanism
2016-03-21 17:54:24 +01:00
Wenzel Jakob
76eb607d4e
completed type table
2016-03-21 17:53:39 +01:00
Wenzel Jakob
eda978e003
support for opaque types
2016-03-15 15:07:55 +01:00
Wenzel Jakob
a3e34f4a5f
comment about old versions of visual studio
2016-03-15 15:06:47 +01:00
Wenzel Jakob
13484a207d
Merge pull request #135 from bennybp/master
...
Check for other callable python objects
2016-03-10 22:48:38 +01:00
Ben Pritchard
1b52246f5d
Better testing for callable python functions
2016-03-10 16:31:38 -05:00
Wenzel Jakob
17cdb06c1b
fix severe regression involving character arrays ( fixes #137 )
2016-03-10 13:24:10 +01:00
Wenzel Jakob
cf8b30287b
Merge pull request #136 from SylvainCorlay/improve-recipe
...
Improve conda recipe
2016-03-10 08:48:01 +01:00
Sylvain Corlay
13ad78bc52
Improve conda recipe
2016-03-09 22:28:53 -05:00
Wenzel Jakob
4a48afb356
doc updates
2016-03-09 21:31:21 +01:00
Wenzel Jakob
de623a7668
added faq
2016-03-09 21:11:19 +01:00
Wenzel Jakob
4e455dde0b
updated changelog, added build directory to gitignore file
2016-03-09 16:50:40 +01:00
Wenzel Jakob
eb5277b38e
Merge pull request #119 from SylvainCorlay/docstring
...
Signature formatting for sphinx
2016-03-09 16:37:44 +01:00
Wenzel Jakob
14cefbf473
minor fix for conda release process
2016-03-09 09:56:37 +01:00
Wenzel Jakob
f7e056a413
Merge pull request #132 from SylvainCorlay/update_release_instructions
...
Update release instructions
2016-03-09 01:47:28 +01:00
Sylvain Corlay
e6464ad843
Update release instructions
2016-03-08 19:37:24 -05:00
Sylvain Corlay
4c7bf9bb94
Add return type
2016-03-08 18:44:04 -05:00
Sylvain Corlay
0e04fdf3f6
Add generic signature for overloads
2016-03-08 17:22:22 -05:00
Sylvain Corlay
13b22bf4f6
Signature formatting for sphinx
2016-03-08 16:06:05 -05:00
Wenzel Jakob
81dfd2c51f
Working type casters for wide strings and wide characters
2016-03-08 20:48:07 +01:00
Wenzel Jakob
504f7553e3
starting to work on next version
2016-03-08 18:12:24 +01:00
Wenzel Jakob
d2385e8fc6
ready for version 1.3
2016-03-08 18:09:50 +01:00
Wenzel Jakob
309a85ba59
support std::shared_ptr<const X> and types that indirectly derive from std::enable_shared_from_this
2016-03-08 17:59:10 +01:00
Wenzel Jakob
fdc00f5077
Merge pull request #118 from SylvainCorlay/conda_recipe
...
Add a conda recipe for pybind11
2016-03-08 17:44:38 +01:00
Wenzel Jakob
77586fd6a2
add version suffix to internal pybind11 data structures to avoid conflicts with future versions
2016-03-06 13:50:26 +01:00
Wenzel Jakob
8d862b37b4
documentation updates (clarified cross-module dependencies, added contributors, improved CSS)
2016-03-06 13:37:22 +01:00
Wenzel Jakob
bce8a4b95c
force explicit cast ( fixes #130 )
2016-03-06 13:30:23 +01:00
Wenzel Jakob
98e9210816
Merge pull request #129 from bennybp/master
...
Use emplace for casting to map
2016-03-05 23:52:25 +01:00
Ben Pritchard
f4902ece17
Use emplace for casting to map
2016-03-05 17:36:46 -05:00
Wenzel Jakob
52f4c3aef3
handle nullptr arguments with custom holder types ( fixes #124 )
2016-03-03 14:05:06 +01:00
Wenzel Jakob
c769fce280
note about nullptr default args
2016-03-03 12:03:30 +01:00
hulucc
a88334f9c2
add wchar_t caster
2016-03-02 15:07:08 +08:00
hulucc
c8f68b3d92
add wstring caster
2016-03-02 13:59:39 +08:00
Wenzel Jakob
937d646bab
updated CI links
2016-03-01 15:48:00 +01:00
Sylvain Corlay
175fa352f7
Add a conda recipe for pybind11
2016-03-01 08:57:32 -05:00
Wenzel Jakob
74982c3d09
about statement
2016-03-01 12:45:44 +01:00
Wenzel Jakob
4f972c0039
Revert of the revert of the python package with version information
...
This reverts commit bee8f16dbb
.
2016-03-01 10:37:37 +01:00
Wenzel Jakob
218b6ce246
Revert "trim docstrings ( closes #112 )"
...
This reverts commit b3ef54a544
.
2016-02-28 23:52:37 +01:00
Wenzel Jakob
00d584da97
Merge pull request #117 from jmabille/overload
...
Python overloading of virtual functions defined in class template
2016-02-28 23:50:58 +01:00
Johan Mabille
25dd4789a8
Python overloading of virtual functions defined in class template
2016-02-28 23:26:29 +01:00
Wenzel Jakob
b3ef54a544
trim docstrings ( closes #112 )
2016-02-24 13:49:04 +01:00
Wenzel Jakob
4a50fa5cd4
Address issue with handle::cast<bool>(), quench warning in example 12 ( fixes #110 )
2016-02-23 23:51:01 +01:00
jmabille
9cfa71f411
Example of bug in functions returning bool overriden in python
2016-02-23 23:48:05 +01:00
Wenzel Jakob
347e6eaf68
allow a broader set of types in STL containers
2016-02-23 17:37:10 +01:00
Wenzel Jakob
82ba330080
stl.h: transparent conversion of STL linked lists
2016-02-23 17:28:45 +01:00
Wenzel Jakob
a3861b54c4
type_caster_generic::load(): accept Py_None as input
2016-02-23 13:37:14 +01:00
Wenzel Jakob
cf2b87aa5e
changelog update
2016-02-22 17:32:44 +01:00