C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Compact Initialization Syntax

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Sun, 8 Jun 2025 23:36:44 +0300
On Sun, 8 Jun 2025 at 23:27, Jeremy Rifkin via Std-Proposals
<std-proposals_at_[hidden]> wrote:
>
> Hi,
> Is this really so bad?
>
> float a = 0;
> float b = 0;
> float c = 0;
> float d = 0;
> float a1 = 0.1f;
> float b1 = 0.1f;
> float c1 = 0.1f;
> float d1 = 0.1f;

Also

std::inplace_vector mah_zeroes(4, 0.0f);
std::inplace_vector mah_point_ones(4, 0.1f);

Received on 2025-06-08 20:36:57