The reason is that begIdx is then 0, and any unsigned value is greater than or equal to 0. So, an
endless loop results that might get stopped by a crash due to an illegal memory access. For this
reason, I don’t like the concept of string::size_type and string::npos. See Section 13.2.12,
page 681, for a workaround that is safer, but not perfect.