Commit 2d077f96 authored by Robert Bradshaw's avatar Robert Bradshaw

Add nullary constructors for stl type conversion utility code to avoid better error checking.

parent 81e51c9d
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
cdef extern from *: cdef extern from *:
cdef cppclass string "std::string": cdef cppclass string "std::string":
string()
string(char* c_str, size_t size) string(char* c_str, size_t size)
@cname("{{cname}}") @cname("{{cname}}")
...@@ -147,6 +148,7 @@ cdef object {{cname}}(const_cpp_set[X]& s): ...@@ -147,6 +148,7 @@ cdef object {{cname}}(const_cpp_set[X]& s):
cdef extern from *: cdef extern from *:
cdef cppclass pair "std::pair" [T, U]: cdef cppclass pair "std::pair" [T, U]:
pair()
pair(T&, U&) pair(T&, U&)
@cname("{{cname}}") @cname("{{cname}}")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment