C++ Logo

std-proposals

Advanced search

Re: [std-proposals] string_view support for std::stoi and friends

From: Zhihao Yuan <zy_at_[hidden]>
Date: Mon, 13 Jan 2025 19:43:23 +0000
On Saturday, January 11th, 2025 at 9:06 AM, Lénárd Szolnoki via Std-Proposals <std-proposals_at_[hidden]> wrote:

>

> strtoll is also technically locale-dependent, but I don't know what that means in practice. In what locales (if any) is the behavior different?
>


We made std::to_string locale-independent
(defined in terms of std::format) in C++26,
I'm sure that we can do the same to stoi, maybe
after collecting some usage data.

--
Zhihao Yuan, ID lichray
The best way to predict the future is to invent it.
_______________________________________________

Received on 2025-01-13 19:43:34