Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.3.1
-
None
-
Microsoft Visual Studio 2013
-
def272750cdb7810bca4f4815ed1183ba2bd6df9
Description
QDateTime::nullJd is defined as follows
static inline qint64 nullJd() { return std::numeric_limits<qint64>::min(); }
With Microsoft VC++ this causes a compiler warning unless compiled with /DNOMINMAX, this isnt always an option when working with legacy code. Therefor I would suggest that QDateTime::nullJd is slightly rewritten:
static inline qint64 nullJd() { return (std::numeric_limits<qint64>::min)(); }
Attachments
Issue Links
- replaces
-
QTBUG-31469 Failed to build application that uses QDateTime class with Visual C++ 11.0
- Closed