Project

General

Profile

Bug #1210

C++11 compile fails "error: use of deleted function bool std::regex_search"

Added by Zulan Zulan over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
build
Target version:
Start date:
19 Aug 2016
Due date:
% Done:

100%

Estimated time:
1.00 h

Description

code/exiv2/trunk/src/version.cpp: In function ‘bool shouldOutput(const exv_grep_keys_t&, const char*, const string&)’:
code/exiv2/trunk/src/version.cpp:189:57: error: use of deleted function ‘bool std::regex_search(const std::__cxx11::basic_string<_Ch_type, Ch_traits, _Ch_alloc>&&, std::_cxx11::match_results<typename std::__cxx11::basic_string<_Ch_type, Ch_traits, _Ch_alloc>::const_iterator, _Alloc>&, const std::_cxx11::basic_regex<_Ch_type, Rx_traits>&, std::regex_constants::match_flag_type) [with _Ch_traits = std::char_traits<char>; _Ch_alloc = std::allocator<char>; _Alloc = std::allocator<std::_cxx11::sub_match<__gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> > > >; Ch_type = char; _Rx_traits = std::_cxx11::regex_traits<char>; typename std::__cxx11::basic_string<_Ch_type, Ch_traits, _Ch_alloc>::const_iterator = __gnu_cxx::_normal_iterator<const char*, std::__cxx11::basic_string<char> >]’
bPrint = std::regex_search(std::string(key),m,*g) || std::regex_search(value,m,*g);

See http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#2329

Trivial patch attached


Files

fix_regex_tmp.patch (955 Bytes) fix_regex_tmp.patch Zulan Zulan, 19 Aug 2016 14:20

Associated revisions

Revision 4415 (diff)
Added by Robin Mills over 5 years ago

#1210 C++11/regex build-breaker in src/version.cpp. Thank You to Zulan for reporting this and providing a patch.

History

#1

Updated by Robin Mills over 5 years ago

  • Category set to build
  • Status changed from New to Closed
  • Assignee set to Robin Mills
  • Target version set to 0.26
  • % Done changed from 0 to 100
  • Estimated time set to 1.00 h

Patch submitted: r4415 C++11/regex build-breaker in src/version.cpp. Thank You to Zulan for reporting this and providing a patch.

Also available in: Atom PDF