Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

string_view.find are using non constexpr search. #548

Open
JKot-Coder opened this issue Dec 8, 2024 · 0 comments
Open

string_view.find are using non constexpr search. #548

JKot-Coder opened this issue Dec 8, 2024 · 0 comments

Comments

@JKot-Coder
Copy link

string_view find method are suppose to be constexpr but it's not, due using non constexpr function 'search'

include\EASTL\string_view.h:217:37: note: non-constexpr function 'search<const char *, const char >' cannot be used in a constant expression
217 | const value_type
const pTemp = eastl::search(mpBegin + pos, pEnd, sw.data(), sw.data() + sw.size());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant