Try a completely different approach to this type trait to appease older
authorChandler Carruth <chandlerc@gmail.com>
Wed, 7 Mar 2012 12:27:35 +0000 (12:27 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 7 Mar 2012 12:27:35 +0000 (12:27 +0000)
commitcbfc117674be7ff70b4682c525d6fcb4827a74ed
tree87230128016caca8aefd7bf396d35ac62a88df33
parentff12877a6f4db734cf0a156dc2ef815a839a79ec
Try a completely different approach to this type trait to appease older
compilers. It seems that GCC 4.3 (and likely older) simply aren't going
to do SFINAE on non-type template parameters the way Clang and modern
GCCs do...

Now we detect the implicit conversion to an integer type, and then
blacklist classes, pointers, and floating point types. This seems to
work well enough, and I'm hopeful will return the bots to life.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152227 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/type_traits.h