summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-03-01 07:14:51 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-03-01 11:08:43 +0100
commitfa8fb9598ed255057badc888da7e22227c45de1c (patch)
treeb102acae5bc15c08ffe913409b6328f4b661ec0d /compat
parent486e591169af724107ffaf6f24cd1e81b24529a9 (diff)
wip1
Diffstat (limited to 'compat')
-rw-r--r--compat/is-complete.hpp21
-rw-r--r--compat/safe-ptr.hpp1
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>