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

2012-10-20 Thread Jordan Rose
On Oct 20, 2012, at 20:23 , Richard Smith wrote: > On Sat, Oct 20, 2012 at 7:36 PM, Gabriel Dos Reis > wrote: >> On Sat, Oct 20, 2012 at 2:24 PM, Jordan Rose wrote: >>> While throwing things out there, why not just optionally allow constexpr >>> functions

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

2012-10-20 Thread Jordan Rose
On Oct 19, 2012, at 23:27 , Andy Gibbs wrote: > On Saturday, October 20, 2012 7:50 AM, Chandler Carruth wrote: >> [...snip...] Let me hypothesize a different interface: >> >> This stays the same... >> constexpr int constexpr_strncmp(const char *p, const char *q, size_t n) { >> return !n ? 0 : *