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/zeiterfassungcorelib.pro b/zeiterfassungcorelib/zeiterfassungcorelib.pro index 225c063..4b28f2b 100644 --- a/zeiterfassungcorelib/zeiterfassungcorelib.pro +++ b/zeiterfassungcorelib/zeiterfassungcorelib.pro @@ -30,8 +30,7 @@ SOURCES += \ replies/updatetimeassignmentreply.cpp \ replies/zeiterfassungreply.cpp -HEADERS += cpp14polyfills.h \ - zeiterfassungapi.h \ +HEADERS += zeiterfassungapi.h \ zeiterfassungcorelib_global.h \ zeiterfassungsettings.h \ replies/createbookingreply.h \