Ticket #4215 (closed Bugs: fixed)
match_results docs incorrectly refer to returning strings
|Reported by:||Jonathan Wakely <jwakely.boost@…>||Owned by:||johnmaddock|
|Version:||Boost Development Trunk||Severity:||Problem|
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