Add missing header.

This commit is contained in:
Roman Telezhynskyi 2022-02-17 14:44:53 +02:00
parent c09b81a427
commit eae539dc4a

View File

@ -22,6 +22,10 @@
#include <QtGlobal> #include <QtGlobal>
#include <ciso646> #include <ciso646>
#if ((defined(_MSVC_LANG) && _MSVC_LANG < 201402L) || __cplusplus < 201402L)
#include <memory>
#endif
#ifdef DRW_ASSERTS #ifdef DRW_ASSERTS
# define drw_assert(a) assert(a) # define drw_assert(a) assert(a)
#else #else
@ -82,7 +86,7 @@
#endif // defined(__cplusplus) #endif // defined(__cplusplus)
#endif // QT_VERSION < QT_VERSION_CHECK(5, 8, 0) #endif // QT_VERSION < QT_VERSION_CHECK(5, 8, 0)
#if ((defined(_MSVC_LANG) && _MSVC_LANG <= 201103L) || __cplusplus <= 201103L) #if ((defined(_MSVC_LANG) && _MSVC_LANG < 201402L) || __cplusplus < 201402L)
template<typename T, typename... Args> template<typename T, typename... Args>
std::unique_ptr<T> make_unique(Args&&... args) { std::unique_ptr<T> make_unique(Args&&... args) {
return std::unique_ptr<T>(new T(std::forward<Args>(args)...)); return std::unique_ptr<T>(new T(std::forward<Args>(args)...));