A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cplusplus.github.io/LWG/issue2329 below:

regex_match()/regex_search() with match_results should forbid temporary strings

#include <initializer_list>

namespace std {

  […]
  
  // 28.11.2, function template regex_match:
  […]
  template <class ST, class SA, class Allocator, class charT, class traits> 
  bool regex_match(const basic_string<charT, ST, SA>&&, 
                   match_results<
                     typename basic_string<charT, ST, SA>::const_iterator, 
                     Allocator>&, 
                   const basic_regex<charT, traits>&, 
                   regex_constants::match_flag_type = 
                     regex_constants::match_default) = delete;

  // 28.11.3, function template regex_search:
  […]
  template <class ST, class SA, class Allocator, class charT, class traits> 
  bool regex_search(const basic_string<charT, ST, SA>&&, 
                    match_results<
                      typename basic_string<charT, ST, SA>::const_iterator, 
                      Allocator>&, 
                    const basic_regex<charT, traits>&, 
                    regex_constants::match_flag_type = 
                      regex_constants::match_default) = delete;
  […]
}

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4