Skip to content

string_view.find are using non constexpr search. #548

@JKot-Coder

Description

@JKot-Coder

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());

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions