mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 23:45:35 +08:00
With Qt 5.9, I got an error when calling compare(BlackMisc::Network::CEntityFlags::Entity, BlackMisc::Network::CEntityFlags::Entity). The underlying integral type of an enum is implementation defined and gcc seem to choose an unsigned int in this case. This made the call ambiguous, since there was no unsigned int overload yet of compare.
44 lines
1.2 KiB
C++
44 lines
1.2 KiB
C++
/* Copyright (C) 2015
|
|
* swift project Community / Contributors
|
|
*
|
|
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
|
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
|
|
* including this file, may be copied, modified, propagated, or distributed except according to the terms
|
|
* contained in the LICENSE file.
|
|
*/
|
|
|
|
//! \file
|
|
|
|
#ifndef BLACKMISC_COMPAREFUNCTIONS_H
|
|
#define BLACKMISC_COMPAREFUNCTIONS_H
|
|
|
|
#include "blackmisc/blackmiscexport.h"
|
|
#include <QDateTime>
|
|
#include <QtGlobal>
|
|
|
|
namespace BlackMisc
|
|
{
|
|
namespace Compare
|
|
{
|
|
//! Compare bool
|
|
BLACKMISC_EXPORT int compare(bool a, bool b);
|
|
|
|
//! Compare int
|
|
BLACKMISC_EXPORT int compare(int a, int b);
|
|
|
|
//! Compare uint
|
|
BLACKMISC_EXPORT int compare(uint a, uint b);
|
|
|
|
//! Compare qint64
|
|
BLACKMISC_EXPORT int compare(qint64 a, qint64 b);
|
|
|
|
//! Compare double
|
|
BLACKMISC_EXPORT int compare(double a, double b);
|
|
|
|
//! Compare double
|
|
BLACKMISC_EXPORT int compare(const QDateTime &a, const QDateTime &b);
|
|
} // ns
|
|
} // ns
|
|
|
|
#endif
|