diff options
Diffstat (limited to 'compat')
-rw-r--r-- | compat/is-complete.hpp | 21 | ||||
-rw-r--r-- | compat/safe-ptr.hpp | 1 |
2 files changed, 0 insertions, 22 deletions
diff --git a/compat/is-complete.hpp b/compat/is-complete.hpp deleted file mode 100644 index d6bba88b..00000000 --- a/compat/is-complete.hpp +++ /dev/null @@ -1,21 +0,0 @@ -#pragma once - -namespace floormat::detail_type_traits { - -namespace { template<class T> class IsComplete_ { - // from <Corrade/Containers/Pointer.h> - template<class U> static char get(U*, decltype(sizeof(U))* = nullptr); - static short get(...); - public: - enum: bool { value = sizeof(get(static_cast<T*>(nullptr))) == sizeof(char) }; -}; } // namespace - -} // namespace floormat::detail_type_traits - -namespace floormat { - -template<typename T> -constexpr inline bool is_complete = - bool(::floormat::detail_type_traits::IsComplete_<T>::value); - -} // namespace floormat diff --git a/compat/safe-ptr.hpp b/compat/safe-ptr.hpp index 2a77ea72..163ede9b 100644 --- a/compat/safe-ptr.hpp +++ b/compat/safe-ptr.hpp @@ -1,6 +1,5 @@ #pragma once #include "compat/assert.hpp" -#include "compat/defs.hpp" #include <type_traits> #include <Corrade/Tags.h> |