Author: Wim Lavrijsen <[email protected]>
Branch: cling-support
Changeset: r86207:eb960a97982c
Date: 2016-08-15 17:03 -0700
http://bitbucket.org/pypy/pypy/changeset/eb960a97982c/
Log: from Aditi: resolve std::string ctor overload with length
diff --git a/pypy/module/cppyy/interp_cppyy.py
b/pypy/module/cppyy/interp_cppyy.py
--- a/pypy/module/cppyy/interp_cppyy.py
+++ b/pypy/module/cppyy/interp_cppyy.py
@@ -17,10 +17,11 @@
pass
# overload priorities: lower is preferred
-priority = { 'void*' : 100,
- 'void**' : 100,
- 'float' : 30,
- 'double' : 10, }
+priority = { 'void*' : 100,
+ 'void**' : 100,
+ 'float' : 30,
+ 'double' : 10,
+ 'const string&' : 1, } # solves a specific string ctor overload
from rpython.rlib.listsort import make_timsort_class
CPPMethodBaseTimSort = make_timsort_class()
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit