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 17:06:27 +0300
On Sun, 7 Sept 2025 at 16:20, Sebastian Wittmeier via Std-Proposals
<std-proposals_at_[hidden]> wrote:
>
> A reason it was done as it was done, could be that the mode to open a file is externally visible by the operating system and I think can have influence over whether you are allowed to open the file.
>
>
>
> The added control could have been more important than avoiding seeming contradictions.
>
> The mode is optional and can probably be seen as 'expert mode'?

Right. Most uses of ifstream are simple, and are passed just the file
name. So what would be the bang-for-buck of a new standardized file
stream
API, and for whom, and how/why?

Received on 2025-09-07 14:06:41