QEndian: do not use "raw" constexpr
Use the Qt's macros instead, since constexpr support may be revoked on certain compilers. Amends d26289ffb43a5fcf34e855db1dfbf42aa03c4f5a. Change-Id: I62354b14b57ae5fcbf3f1186ddb48bcf26535e90 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
parent
3478f6c447
commit
50481fb909
@ -327,9 +327,9 @@ public:
|
|||||||
return pre;
|
return pre;
|
||||||
}
|
}
|
||||||
|
|
||||||
static constexpr QSpecialInteger max()
|
static Q_DECL_CONSTEXPR QSpecialInteger max()
|
||||||
{ return QSpecialInteger(std::numeric_limits<T>::max()); }
|
{ return QSpecialInteger(std::numeric_limits<T>::max()); }
|
||||||
static constexpr QSpecialInteger min()
|
static Q_DECL_CONSTEXPR QSpecialInteger min()
|
||||||
{ return QSpecialInteger(std::numeric_limits<T>::min()); }
|
{ return QSpecialInteger(std::numeric_limits<T>::min()); }
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -373,8 +373,8 @@ public:
|
|||||||
QLEInteger &operator ++(int);
|
QLEInteger &operator ++(int);
|
||||||
QLEInteger &operator --(int);
|
QLEInteger &operator --(int);
|
||||||
|
|
||||||
static constexpr QLEInteger max();
|
static Q_DECL_CONSTEXPR QLEInteger max();
|
||||||
static constexpr QLEInteger min();
|
static Q_DECL_CONSTEXPR QLEInteger min();
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
@ -400,8 +400,8 @@ public:
|
|||||||
QBEInteger &operator ++(int);
|
QBEInteger &operator ++(int);
|
||||||
QBEInteger &operator --(int);
|
QBEInteger &operator --(int);
|
||||||
|
|
||||||
static constexpr QBEInteger max();
|
static Q_DECL_CONSTEXPR QBEInteger max();
|
||||||
static constexpr QBEInteger min();
|
static Q_DECL_CONSTEXPR QBEInteger min();
|
||||||
};
|
};
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user