Commit e7b40c05 authored by Alvarez, Gonzalo's avatar Alvarez, Gonzalo
Browse files

Loki::TypeTraits<T>::isArith includes long long int [unsigned]

parent 7d3c4fc6
......@@ -31,6 +31,21 @@
#pragma warning( disable : 4180 ) //qualifier applied to function type has no meaning; ignored
#endif
template<typename T>
struct LongLong {
static const int value = 0;
};
template<>
struct LongLong<int long long> {
static const int value = 1;
};
template<>
struct LongLong<unsigned int long long> {
static const int value = 1;
};
namespace Loki
{
////////////////////////////////////////////////////////////////////////////////
......@@ -2210,7 +2225,7 @@ namespace Loki
enum { isSignedInt = isStdSignedInt || IsCustomSignedInt<UnqualifiedType>::value };
enum { isIntegral = isStdIntegral || isUnsignedInt || isSignedInt };
enum { isFloat = isStdFloat || IsCustomFloat<UnqualifiedType>::value };
enum { isArith = isIntegral || isFloat };
enum { isArith = isIntegral || isFloat || LongLong<T>::value};
enum { isFundamental = isStdFundamental || isArith };
typedef typename Select<isStdArith || isPointer || isMemberPointer, T,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment