Skip to content

Constexpr basic_string_view #24

@andrewerf

Description

@andrewerf

Checklist

  • I did not find a duplicate of this feature request in the Github Issues section.

Description

The bpstd::basic_string_view uses std::char_traits as a background. This produces a error in a constexpr context:
error: call to non-'constexpr' function 'static std::size_t std::char_traits<char>::length(const char_type*)'.
This is correspond to the standard because char_traits::length is marked constexpr since C++17 only.

P.S. Idk whether it's a bug or a feature request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions