-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Description
Describe the bug
libcpp.string.npos maps to std::npos, which doesn't exist and causes a compilation error:
error: ‘npos’ is not a member of ‘std’; did you mean ‘fpos’?
It should map to std::string::npos instead.
Sources:
- https://github.com/cython/cython/blob/master/Cython/Includes/libcpp/string.pxd#L8
- https://www.cplusplus.com/reference/string/string/npos/
Wrong:
cdef extern from "<string>" namespace "std" nogil:
size_t npos = -1Correct:
cdef extern from "<string>" namespace "std::string" nogil:
const size_t nposReactions are currently unavailable