Date: Mon, 13 Jan 2025 20:23:42 +0000
On Mon, 13 Jan 2025 at 20:17, Tiago Freire via Std-Proposals <
std-proposals_at_[hidden]> wrote:
> Isn't <charconv> already locale independent?
> In what way after C++17 would stoi not be obsolete?
>
Seriously?
Because std::stoi(function_returning_string()) is much simpler than:
auto str = function_returning_string();
int i;
if (auto [ptr, ec] = std::from_chars(str.data(), str.data()+str.size(), i);
ec)
//...
std-proposals_at_[hidden]> wrote:
> Isn't <charconv> already locale independent?
> In what way after C++17 would stoi not be obsolete?
>
Seriously?
Because std::stoi(function_returning_string()) is much simpler than:
auto str = function_returning_string();
int i;
if (auto [ptr, ec] = std::from_chars(str.data(), str.data()+str.size(), i);
ec)
//...
Received on 2025-01-13 20:25:01