Skip to content

Is it by design that <string_view> provides most contents of <string>? #4625

@frederick-vs-ja

Description

@frederick-vs-ja

MSVC STL's <string_view> currently directly includes <xstring>, which provides most contents of <string>.

I think it's OK for <string> to include <string_view> (since C++17). But when one only includes <string_view>, perhaps it's sometimes expected that no mechanism of dynamic allocation is made available.

If the status quo is not by design, I think we may extract the mechanisms of char_traits into a new internal header and make <string_view> slimmer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixedSomething works now, yay!throughputMust compile faster

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions