UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
overload.hpp
Go to the documentation of this file.
1#ifndef OVERLOAD_HPP
2#define OVERLOAD_HPP
3
4#include <QtGlobal>
5
6#if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)
7
8template<typename... Args>
9using Overload = QOverload<Args...>;
10
11#else
12
13template<typename... Args>
14struct Overload {
15 template<typename R, typename C>
16 static constexpr auto of(R (C::*ptr)(Args...)) noexcept -> decltype(ptr) {
17 return ptr;
18 }
19};
20
21#endif //QT_VERSION
22
23#endif
#define R
QOverload< Args... > Overload
Definition overload.hpp:9