Skip to content

string_view support #273

Description

@OlafvdSpek

regex doesn't appear to support string_view

  {
    std::string s;
    boost::match_results<std::string::const_iterator> m;
    boost::regex_search(s, m, boost::regex(R"(\[quote.*?\])", boost::regex::icase), boost::match_default);
  }
  {
    std::string_view sv;
    boost::match_results<std::string_view::const_iterator> 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<const char*>&, boost::regex, boost::regex_constants::_match_flags)'
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions