diff --git a/zeiterfassungcorelib/cpp14polyfills.h b/zeiterfassungcorelib/cpp14polyfills.h deleted file mode 100644 index d345a00..0000000 --- a/zeiterfassungcorelib/cpp14polyfills.h +++ /dev/null @@ -1,43 +0,0 @@ -#pragma once - -#if __cplusplus < 201402L && _MSC_VER < 1800 - -// std includes -#include -#include -#include -#include -#include - -namespace std { - template struct _Unique_if { - typedef unique_ptr _Single_object; - }; - - template struct _Unique_if { - typedef unique_ptr _Unknown_bound; - }; - - template struct _Unique_if { - typedef void _Known_bound; - }; - - template - typename _Unique_if::_Single_object - make_unique(Args&&... args) { - return unique_ptr(new T(std::forward(args)...)); - } - - template - typename _Unique_if::_Unknown_bound - make_unique(size_t n) { - typedef typename remove_extent::type U; - return unique_ptr(new U[n]()); - } - - template - typename _Unique_if::_Known_bound - make_unique(Args&&...) = delete; -} - -#endif // __cplusplus < 201402L diff --git a/zeiterfassungcorelib/zeiterfassungapi.cpp b/zeiterfassungcorelib/zeiterfassungapi.cpp index a125acc..5e38e4c 100644 --- a/zeiterfassungcorelib/zeiterfassungapi.cpp +++ b/zeiterfassungcorelib/zeiterfassungapi.cpp @@ -25,9 +25,6 @@ #include "replies/getpresencestatusreply.h" #include "replies/getabsencesreply.h" -//add support for pre cpp14 compilers -#include "cpp14polyfills.h" - ZeiterfassungApi::ZeiterfassungApi(const QUrl &url, QObject *parent) : QObject(parent), m_url(url), diff --git a/zeiterfassungcorelib/zeiterfassungcorelib.pro b/zeiterfassungcorelib/zeiterfassungcorelib.pro index f64770b..f7e9f6c 100644 --- a/zeiterfassungcorelib/zeiterfassungcorelib.pro +++ b/zeiterfassungcorelib/zeiterfassungcorelib.pro @@ -28,8 +28,7 @@ SOURCES += timeutils.cpp \ replies/updatetimeassignmentreply.cpp \ replies/zeiterfassungreply.cpp -HEADERS += cpp14polyfills.h \ - timeutils.h \ +HEADERS += timeutils.h \ zeiterfassungapi.h \ zeiterfassungcorelib_global.h \ zeiterfassungsettings.h \