mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +08:00
refs #624 Use std alias traits.
This commit is contained in:
@@ -100,7 +100,7 @@ namespace BlackMisc
|
||||
/*!
|
||||
* Operator for streaming enums to QDBusArgument.
|
||||
*/
|
||||
template <class E, typename std::enable_if<std::is_enum<E>::value, int>::type = 0>
|
||||
template <class E, std::enable_if_t<std::is_enum<E>::value, int> = 0>
|
||||
QDBusArgument &operator <<(QDBusArgument &arg, const E &value)
|
||||
{
|
||||
arg.beginStructure();
|
||||
@@ -112,7 +112,7 @@ QDBusArgument &operator <<(QDBusArgument &arg, const E &value)
|
||||
/*!
|
||||
* Operator for streaming enums from QDBusArgument.
|
||||
*/
|
||||
template <class E, typename std::enable_if<std::is_enum<E>::value, int>::type = 0>
|
||||
template <class E, std::enable_if_t<std::is_enum<E>::value, int> = 0>
|
||||
const QDBusArgument &operator >>(const QDBusArgument &arg, E &value)
|
||||
{
|
||||
int temp;
|
||||
|
||||
Reference in New Issue
Block a user