On Thu, 20 Feb 2025, 21:39 Phil Bouchard, <boost@fornux.com> wrote:


On 2/20/25 16:19, Jonathan Wakely wrote:
>
>
> On Thu, 20 Feb 2025 at 20:41, Phil Bouchard via Std-Proposals
> <std-proposals@lists.isocpp.org <mailto:std-proposals@lists.isocpp.org>>
> wrote:
>
>     regex_match would get 1 more character on the need basis using in.get()
>     quite simply. If it fails then it would rewind the read pointer to
>     where
>     it was.
>
>
> How? iostream putback is extremely limited.

Using seekg().

That might work on an ifstream or istringstream but not on an arbitrary istream.