[PATCH] [libcxx] Remove use of default function template parameters in type traits. Fixes DR20484

Eric Fiselier eric at efcs.ca
Wed Jul 30 19:36:08 PDT 2014


decltype is #defined to `__typeof__`  when it is not available (ie. c++03 mode). The other uses of decltype in the type_traits header lead me to believe it should not be a problem. The tests for `<cmath>` (as en example since it includes `<type_traits>`) compile after this change in C++03 mode (for GCC tot) but not before.

http://reviews.llvm.org/D4735






More information about the cfe-commits mailing list