#12237 closed Bugs (invalid)
libs\regex\example\snippets\captures_example.cpp(39,30): error : no member named 'captures' in 'boost::match_results<std::_String_const_iterator<std::_String_val<std::_Simple_types<char> > >, std::allocator<boost::sub_match<std::_String_const_iterator<std::_String_val<std::_Simple_types<char> > > > > >'
Reported by: | Owned by: | John Maddock | |
---|---|---|---|
Milestone: | To Be Determined | Component: | regex |
Version: | Boost 1.61.0 | Severity: | Problem |
Keywords: | Cc: |
Description
Hi, Compiling with Visual Studio 2015 update 2 both using default compiler and Clang 3.7 with Microsoft CodeGen, I get this error saying that
captures in not a member of boost::match_results ...
I believe this is a bug in 1_61_0
This can be seen in the captures_example.cpp
Regards, Juan Dent
Change History (4)
comment:1 by , 6 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
follow-up: 4 comment:3 by , 6 years ago
See http://www.boost.org/doc/libs/1_61_0/libs/regex/doc/html/boost_regex/captures.html
Pay particular attention to the last sentence.
comment:4 by , 6 years ago
Replying to johnmaddock:
See http://www.boost.org/doc/libs/1_61_0/libs/regex/doc/html/boost_regex/captures.html
Pay particular attention to the last sentence.
Thank you!!
Juan
As noted in the docs, this is an experimental feature which slows down matching, to enable it you need to define BOOST_REGEX_MATCH_EXTRA both when building the regex lib and when using it. Otherwise you will get the error above.