ashvardanian / ashvardanian/StringZilla

Why is npos max 63-bit number instead of like std::string?

Open
#224 1 comment 0 reactions 1 assignee Claimed by @ashvardanian View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.