string_view support
- Dominant language
- C++
- Stars
- 119
- Forks
- 113
- PR merge metrics
- No merged PRs in 30d
Description
`regex` doesn't appear to support `string_view`
```
{
std::string s;
boost::match_results m;
boost::regex_search(s, m, boost::regex(R"(\[quote.*?\])", boost::regex::icase), boost::match_default);
}
{
std::string_view sv;
boost::match_results m;
boost::regex_search(sv, m, boost::regex(R"(\[quote.*?\])", boost::regex::icase), boost::match_default);
// error: no matching function for call to 'regex_search(std::string_view&, boost::match_results&, boost::regex, boost::regex_constants::_match_flags)'
}
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the regex_search overloads involved in the shown std::string and std::string_view examples, and reproduce the compiler error. Done means the string_view example compiles and behaves like the std::string example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100