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