octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #65244] Simplify code complexity of perms.cc


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #65244] Simplify code complexity of perms.cc
Date: Fri, 9 Feb 2024 07:12:04 -0500 (EST)

Follow-up Comment #12, bug#65244 (group octave):

I don't see the compiler error for the example in comment #9 (after fixing the
typo at the end of the first line).

But looking at the generated assembly (without that intermediate constexpr
value), at least GCC and Clang seem to produce the same code with "normal" if
or with constexpr if even at -O0. (At least with a simple example where the
assembly doesn't get too complicated.)
So, just omitting the constexpr is probably good enough to make the code
compatible with C++11.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65244>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]