Bug #1210

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

Added by Zulan Zulan 11 months ago. Updated 11 months ago.

Status:ClosedStart date:19 Aug 2016
Priority:NormalDue date:
Assignee:Robin Mills% Done:

100%

Category:buildEstimated time:1.00 hour
Target version:0.26

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

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

Associated revisions

Revision 4415
Added by Robin Mills 11 months 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 11 months 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

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

Redmine Appliance - Powered by TurnKey Linux