Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#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: JUAN DENT <juandent@…> 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 John Maddock, 6 years ago

Resolution: invalid
Status: newclosed

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.

comment:2 by JUAN DENT <juandent@…>, 6 years ago

Can you please point me to where the docs are?

comment:3 by John Maddock, 6 years ago

in reply to:  3 comment:4 by JUAN DENT <juandent@…>, 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

Note: See TracTickets for help on using tickets.