[cfe-commits] r148374 - in /cfe/trunk: lib/AST/ExprConstant.cpp test/SemaCXX/constexpr-strlen.cpp

Jonathan Sauer jonathan.sauer at gmx.de
Thu Jan 19 08:52:51 PST 2012


>> Do you know if the same apply (I would guess so) to std::strlen ?
>> 
>> It seems a pity that such a trivial function could not be constexpr as making it constexpr is actually dead simple. I wonder if it would be worth a Defect Report.
>> 
> This would seem very reasonable to me...

As well as a lot (all?) of the math functions in cmath. And clang's built-ins (__builtin_sin etc), too.


What do you think?
Jonathan





More information about the cfe-commits mailing list