C++ Logo

std-discussion

Advanced search

Re: generic c++ for loop

From: Thiago Macieira <thiago_at_[hidden]>
Date: Sun, 01 Dec 2024 20:48:18 -0800
On Saturday 30 November 2024 20:23:07 Pacific Standard Time Yongwei Wu wrote:
> Just one side-note: Apparently GCC generates much better assembly output
> with the fold expression. While Clang generates identical outputs, they are
> not close to the GCC fold-expression output.

Fair, but the issue I was talking about was the constexpr limit, which means
there is no code generation.

It's also possible it's only with old compilers, which sometimes we still have
to support on some platforms.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Principal Engineer - Intel DCAI Platform & System Engineering

Received on 2024-12-02 04:48:27