Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2d077f9

Browse files
committed
Add nullary constructors for stl type conversion utility code to avoid better error checking.
1 parent 81e51c9 commit 2d077f9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Cython/Utility/CppConvert.pyx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
cdef extern from *:
77
cdef cppclass string "std::string":
8+
string()
89
string(char* c_str, size_t size)
910

1011
@cname("{{cname}}")
@@ -147,6 +148,7 @@ cdef object {{cname}}(const_cpp_set[X]& s):
147148

148149
cdef extern from *:
149150
cdef cppclass pair "std::pair" [T, U]:
151+
pair()
150152
pair(T&, U&)
151153

152154
@cname("{{cname}}")

0 commit comments

Comments
 (0)