This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [cfe-dev] C++11: new builtin to allow constexpr to be applied to performance-critical functions


On Sat, Oct 20, 2012 at 2:24 PM, Jordan Rose <jordan_rose@apple.com> wrote:

> While throwing things out there, why not just optionally allow constexpr functions to coexist with non-constexpr functions of the same name, like inline and non-inline?

Or remove most of the restrictions on constexpr functions that were necessary
only to win approval for C++11.  This case doesn't strike me as one of
those where you fight complexity with even greater complexity.

Allow loops and the like in constexpr functions and be done with it.  See my
comments on the C++ Extension Working Group when these (and related)
issues where brought up.

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]