Re: Unrolling for constexpr

2020-04-27 Thread Jonathan Wakely via Gcc
On Mon, 27 Apr 2020 at 04:54, Laleh Aghababaie via Gcc wrote: > > Hi all, N.B. this is the wrong mailing list for such a question, you should have used the gcc-help list instead. > I have a question about the constexpr variable specifications and how the > compiler handles them. The constexpr s

Unrolling for constexpr

2020-04-26 Thread Laleh Aghababaie via Gcc
Hi all, I have a question about the constexpr variable specifications and how the compiler handles them. The constexpr specifier declares that it is possible to evaluate the value of the function or variable “at compile time”. If we look at the bellow simplified example: int func(){ in