C++ Logo

std-proposals

Advanced search

Re: [std-proposals] [Draft] Typed and Safer Stream API for C++

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Sun, 7 Sep 2025 15:31:33 +0300
On Sun, 7 Sept 2025 at 15:07, Jerome Saint-Martin via Std-Proposals
<std-proposals_at_[hidden]> wrote:
>
> I see you prefer personal attacks over technical discussion. I never claimed that ifstream doesn't work—only that some flags seemed redundant.

Perhaps you can then claim what this bit you wrote means:

>Problem
>The current ifstream/ofstream API allows illogical mode combinations:
> std::ifstream f("data.txt", std::ios::out); // Compiles, but doesn't work

See the "Compiles, but doesn't work" part.

What exactly do you suggest can be validated at compile-time? How is a
combination of read and write modes illogical?

Received on 2025-09-07 12:31:47