Commit Graph

136 Commits

Author SHA1 Message Date
Tomasz Miąsko
875df5528d Make handle and related classes const correct.
This gives handle classes a typical pointer semantics with respects to
constness.
2015-12-28 08:11:16 +01:00
Wenzel Jakob
45f7c65594 Merge pull request #50 from tmiasko/handle_cast_const
Add const modifier to handle::cast.
2015-12-27 17:29:24 +01:00
Wenzel Jakob
386ac5cbab Merge pull request #51 from tmiasko/def_tuple
Create an empty python tuple in pybind::tuple default constructor.
2015-12-27 17:28:30 +01:00
Tomasz Miąsko
c83e062263 Create an empty python tuple in pybind::tuple default constructor.
Follow the same semantics as constructors of dict, list, and set by
creating valid Python object in default constructor of a tuple class.
2015-12-27 09:05:25 +01:00
Tomasz Miąsko
cc39b2f37f Add const modifier to handle::cast. 2015-12-26 19:01:28 +01:00
Wenzel Jakob
dd57a34e2d improved error handling at module import time 2015-12-26 14:04:52 +01:00
Wenzel Jakob
9d573f44b9 stl.h fix for std::map (see PR #43) 2015-12-26 13:37:59 +01:00
Wenzel Jakob
1546b85797 Merge pull request #44 from onionhammer/patch-1
functional.h not included in "make install"
2015-12-22 12:05:44 +01:00
Erik O'Leary
a1718a66d3 functional.h not included in "make install" 2015-12-21 20:26:02 -06:00
Wenzel Jakob
4b279327a3 stl.h bugfix for std::set, misc. cleanups 2015-12-18 18:41:36 +01:00
Wenzel Jakob
dbfaf370a5 Merge pull request #41 from jaredcasper/master
Fix typo in STL docs.
2015-12-16 12:22:20 +01:00
Wenzel Jakob
d1a24823bc considerable simplifications to the Python type casters 2015-12-16 12:17:46 +01:00
Wenzel Jakob
9b0b40e0b0 add converter for nullptr_t 2015-12-16 11:41:53 +01:00
Jared Casper
6be9e2fff5 Fix typo in STL docs. 2015-12-15 15:56:14 -08:00
Wenzel Jakob
5ef1219030 smart pointer clarifications 2015-12-15 17:07:35 +01:00
Wenzel Jakob
8b5bf00f26 added enhancements clause to license 2015-12-15 16:35:20 +01:00
Wenzel Jakob
6621c17f10 Merge pull request #38 from adler-j/issue-37__convert_exception
ENH: add more error conversions
2015-12-15 12:25:12 +01:00
Jonas Adler
2b9fdbe7c9 ENH: add more error conversions 2015-12-15 11:56:12 +01:00
Wenzel Jakob
3e4263447b Merge pull request #32 from polygon/fix_complex_arrays
Fixed py:array constructor from failing for complex types
2015-12-15 11:33:52 +01:00
Wenzel Jakob
e52cf8ae91 also add stl.h header 2015-12-15 11:32:29 +01:00
Wenzel Jakob
93d9af1019 Merge pull request #31 from polygon/fix_complex
Add complex.h to list of installed headers
2015-12-15 11:31:20 +01:00
Wenzel Jakob
f933e68d6a fixed license (was zlib, should have been 3-clause BSD) 2015-12-15 11:17:13 +01:00
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
Jan Dohl
3e2736b63c Add complex.h to list of installed headers 2015-12-15 03:24:40 +01:00
Wenzel Jakob
61d67f0462 a few more documentation improvements 2015-12-14 12:53:06 +01:00
Wenzel Jakob
44db04f580 clarification regarding STL container support 2015-12-14 12:40:45 +01:00
Wenzel Jakob
a4caa85fc6 added missing namespace declaration 2015-12-14 12:39:02 +01:00
Wenzel Jakob
e98a5dfa7e Merge pull request #29 from mkkim1129/master
Fix typographical errors
2015-12-14 11:35:40 +01:00
mk kim
b62c1203f5 Fix typographical error 2015-12-14 16:00:58 +09:00
Wenzel Jakob
62127a27b0 don't allow 'void' or 'void*' as a function argument 2015-12-13 13:09:42 +01:00
Wenzel Jakob
5f15121b0c Merge pull request #24 from jtravs/patch-1
Add ldflags to compile command
2015-12-13 11:33:49 +01:00
Wenzel Jakob
7ab3e879a3 Merge pull request #26 from whoshuu/feature/debug-appveyor-configuration
Add debug appveyor configuration
2015-12-13 11:33:22 +01:00
Wenzel Jakob
76269b70b6 fix test harness for windows debug builds 2015-12-13 11:33:41 +01:00
Huu Nguyen
665eeafd44 Add debug appveyor configuration 2015-12-12 23:03:30 -05:00
John Travers
f7e430292a Add ldflags to compile command
On my system (Mac OS with custom Python installation) I had to add the ldflags argument to python-config to get things working.
2015-12-12 22:58:23 +01:00
Wenzel Jakob
bda3b67dc5 add extra documentation CSS on RTD 2015-12-07 18:29:17 +01:00
Wenzel Jakob
f1532bd31c updated cmake snippet in documentation 2015-12-07 18:24:43 +01:00
Wenzel Jakob
ecdd868956 documentation on using the gil 2015-12-07 18:17:58 +01:00
Wenzel Jakob
24fe0904fb license note 2015-12-05 14:41:25 +01:00
Wenzel Jakob
40584ce8c5 fixed another typo 2015-12-04 23:58:23 +01:00
Wenzel Jakob
7f78318778 Merge pull request #20 from jakirkham/minor_typo
Missing "is"
2015-12-04 23:56:04 +01:00
John Kirkham
648e1962e1 README.md: Missing "is". 2015-12-04 17:51:42 -05:00
Wenzel Jakob
e9f4304f29 Merge pull request #19 from jakirkham/fix_pip_non_ascii_char_err
Change non-ASCII characters to ASCII
2015-12-04 22:39:47 +01:00
John Kirkham
dc97833f8d setup.py: Fix another dash to be ASCII so pip doesn't complain. 2015-12-04 16:22:25 -05:00
John Kirkham
c40f8c70dc setup.py: Fix dash to be ASCII so pip doesn't complain. 2015-12-04 16:21:23 -05:00
Wenzel Jakob
faaee1cbbd only use -flto when supported, quenched policy warnings 2015-11-30 12:45:38 +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
f2331666d1 improved compiler detection 2015-11-28 14:24:44 +01:00