boostorg / boostorg/tokenizer

allow tokenizing string_view to string_view(s)

Open
#15 1 comment 4 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
30
Forks
45
PR merge metrics
No merged PRs in 30d

Description

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
static void assign(Iterator b, Iterator e, std::basic_string_view& t)
{
t = { std::addressof(*b), static_cast(std::distance(b, e)) };
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.