$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-users] [regex] match_results: signatures of position(sub) and length(sub) are different, why?
From: Frédéric Bron (frederic.bron_at_[hidden])
Date: 2012-12-12 08:22:43
Hi,
On the following link, we can see that length and position member
functions have different signatures:
http://www.boost.org/doc/libs/1_52_0/libs/regex/doc/html/boost_regex/ref/match_results.html
difference_type length(int sub = 0) const;
difference_type position(unsigned int sub = 0) const;
Why int for length(sub) and unsigned int for position(sub)?
Frédéric