Boost logo

Boost :

From: Edouard Poor (edouard_at_[hidden])
Date: 2002-04-30 06:35:58

Hi all.

I was trying to use the Boost regex library and ran into some problems
with string::const_iteraror being returned in the smatch structure.

Just a dumb question, but why does smatch (and cmatch for that matter)
return const iterators? I'm wanting to do a targetString.replace() with
the returned iterators from a regex_match( targetString, ... ) at a
later time, but of course cannot because replace() does not take const

What are the reason for the const-ness?

Edouard Poor.

Boost list run by bdawes at, gregod at, cpdaniel at, john at