Skip to content

allow tokenizing string_view to string_view(s) #15

@cedral

Description

@cedral

This requires getting around the dependency on std::string's assign function. I added the following specialization to assign_or_plus_equal to get it working but it could probably be done better.

    template<class Iterator, typename char_t>
    static void assign(Iterator b, Iterator e, std::basic_string_view<char_t>& t)
    {
        t = { std::addressof(*b), static_cast<size_t>(std::distance(b, e)) };
    }

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