Modify

Opened 8 years ago

Closed 8 years ago

#4215 closed Bugs (fixed)

match_results docs incorrectly refer to returning strings

Reported by: Jonathan Wakely <jwakely.boost@…> Owned by: John Maddock
Milestone: Boost 1.43.0 Component: regex
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

The documentation for match_results::length and match_results::position both say:

The overloads that accept a string refer to a named sub-expression n. In the event that there is no such named sub-expression then returns an empty string.

Those functions return difference_type not a string

Attachments (0)

Change History (1)

comment:1 Changed 8 years ago by John Maddock

Resolution: fixed
Status: newclosed

(In [61976]) Update regex_match requirements. Fixes #4215.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain John Maddock.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.