C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Fwd: Extension to runtime polymorphism proposed

From: Thiago Macieira <thiago_at_[hidden]>
Date: Thu, 02 Apr 2026 18:40:13 -0700
On Thursday, 2 April 2026 15:12:44 Pacific Daylight Time Muneem via Std-
Proposals wrote:
> In my benchmark, I used std::cin and volatile x to make sure that any
> compile time indexing dosent happen!

Did you read the assembly?

Because when I tried by pasting into Godbolt, it discarded a lot of checks and
ended up with a loop storing a constant to that volatile.

And again, please stop replying to yourself within a few minutes. Instead,
wait a few minutes before sending so you get your ideas together.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Principal Engineer - Intel Data Center - Platform & Sys. Eng.

Received on 2026-04-03 01:40:16