ashvardanian / ashvardanian/StringZilla
Why is npos max 63-bit number instead of like std::string?
Open
enhancement
- Dominant language
- C
- Stars
- 3.6k
- Forks
- 135
- PR merge metrics
- No merged PRs in 30d
Description
This isn't a bug report but I'm wondering why? Since they're not the same I can't use this in std::string's place as std::string::npos is the maximum 64-bit unsigned integer, and it breaks my code. Was there a reason why it wasn't simply made the same? Is there any way of changing it to be the same so I can use it?
Contributor guide
Assessment
This issue has not been assessed yet.