Change in default behaviour wrapping C++ bool for Python.
Only a Python True or False will now work for C++ bool parameters. This fixes overloading bool with other types.
This commit is contained in:
parent
7f45cbd178
commit
504c2030bb
11 changed files with 251 additions and 11 deletions
|
|
@ -30,7 +30,7 @@ if ref_float(3.5) != 3.5:
|
|||
if ref_double(3.5) != 3.5:
|
||||
raise RuntimeError
|
||||
|
||||
if ref_bool(1) != 1:
|
||||
if ref_bool(True) != True:
|
||||
raise RuntimeError
|
||||
|
||||
if ref_char('x') != 'x':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue