C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Automatic perfect forwarding is possible and not too complicated

From: Bo Persson <bo_at_[hidden]>
Date: Thu, 10 Apr 2025 19:06:24 +0200
On 2025-04-10 at 15:19, Frederick Virchanza Gotham via Std-Proposals wrote:
> On Thu, Apr 10, 2025 at 2:06 PM Bo Persson via Std-Proposals wrote:
>>
>> This is a very big deal where I come from. Having code do different
>> things in test and production environments is a big no-no. What have we
>> tested?!
>
>
> Anyone who's been programming in C++ for more than a year or two has
> come across a few strange situations, such as:
>
> Scenario 1) Program malfunctions in Debug mode, but runs fine in
> Release mode
> Scenario 2) Program runs fine in Debug mode, and malfunctions in
> Release mode

Happens, but not because the compiler selects to call different
functions. THAT is a big deal!

Received on 2025-04-10 17:06:28