aboutsummaryrefslogtreecommitdiff
path: root/source/lib/meta
diff options
context:
space:
mode:
Diffstat (limited to 'source/lib/meta')
-rw-r--r--source/lib/meta/CMakeLists.txt31
-rw-r--r--source/lib/meta/include/wanda/meta/deferred_failure.hpp21
-rw-r--r--source/lib/meta/include/wanda/meta/keyed.hpp28
-rw-r--r--source/lib/meta/include/wanda/meta/type_wrapper.hpp47
4 files changed, 0 insertions, 127 deletions
diff --git a/source/lib/meta/CMakeLists.txt b/source/lib/meta/CMakeLists.txt
deleted file mode 100644
index d21d45c..0000000
--- a/source/lib/meta/CMakeLists.txt
+++ /dev/null
@@ -1,31 +0,0 @@
-cmake_path(GET CMAKE_CURRENT_SOURCE_DIR STEM LIB_NAME)
-
-file(GLOB_RECURSE LIB_HEADERS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" CONFIGURE_DEPENDS "**/*.hpp")
-
-add_library("wanda-${LIB_NAME}" INTERFACE)
-
-target_sources("wanda-${LIB_NAME}" INTERFACE
- FILE_SET HEADERS
- FILES ${LIB_HEADERS}
- BASE_DIRS "include"
-)
-
-target_include_directories("wanda-${LIB_NAME}" INTERFACE
- "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
-)
-
-target_include_directories("wanda-${LIB_NAME}" SYSTEM INTERFACE
- "$<INSTALL_INTERFACE:include>"
-)
-
-target_compile_features("wanda-${LIB_NAME}" INTERFACE
- "cxx_std_20"
-)
-
-if(NOT WANDA_APPLICATIONS_ONLY)
- install(TARGETS "wanda-${LIB_NAME}"
- FILE_SET HEADERS
- )
-endif()
-
-add_library("wanda::${LIB_NAME}" ALIAS "wanda-${LIB_NAME}")
diff --git a/source/lib/meta/include/wanda/meta/deferred_failure.hpp b/source/lib/meta/include/wanda/meta/deferred_failure.hpp
deleted file mode 100644
index f74d923..0000000
--- a/source/lib/meta/include/wanda/meta/deferred_failure.hpp
+++ /dev/null
@@ -1,21 +0,0 @@
-/**
- * @file deferred_failure.hpp
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @since 1.0.0
- */
-
-#ifndef WANDA_META_DEFERRED_FAILURE_HPP
-#define WANDA_META_DEFERRED_FAILURE_HPP
-
-#include <type_traits>
-
-namespace wanda::meta
-{
- /**
- * @brief A helper type to defer static_assert failures
- */
- template<typename...>
- using deferred_failure = std::false_type;
-} // namespace wanda::meta
-
-#endif \ No newline at end of file
diff --git a/source/lib/meta/include/wanda/meta/keyed.hpp b/source/lib/meta/include/wanda/meta/keyed.hpp
deleted file mode 100644
index a09d1eb..0000000
--- a/source/lib/meta/include/wanda/meta/keyed.hpp
+++ /dev/null
@@ -1,28 +0,0 @@
-/**
- * @file keyed.hpp
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @since 1.0.0
- */
-
-#ifndef WANDA_META_KEYED_HPP
-#define WANDA_META_KEYED_HPP
-
-namespace wanda::meta
-{
- /**
- * @brief A tag type to prevent construction of a type without a factory
- */
- template<typename Derived>
- struct keyed
- {
- protected:
- struct key
- {
- };
-
- explicit keyed(key) {}
- };
-
-} // namespace wanda::meta
-
-#endif \ No newline at end of file
diff --git a/source/lib/meta/include/wanda/meta/type_wrapper.hpp b/source/lib/meta/include/wanda/meta/type_wrapper.hpp
deleted file mode 100644
index 1d34c09..0000000
--- a/source/lib/meta/include/wanda/meta/type_wrapper.hpp
+++ /dev/null
@@ -1,47 +0,0 @@
-/**
- * @file type_wrapper.hpp
- * @author Felix Morgner (felix.morgner@gmail.com)
- * @since 1.0.0
- */
-
-#ifndef WANDA_META_TYPE_WRAPPER_HPP
-#define WANDA_META_TYPE_WRAPPER_HPP
-
-#include <utility>
-
-namespace wanda::meta
-{
- /**
- * @brief A type to create a distinct type based on an existing type
- *
- * @tparam InnerType The type to wrap
- * @tparam TagType A tag type to identify the distinct type
- */
- template<typename InnerType, typename TagType>
- struct type_wrapper
- {
- /**
- * @brief Construct a new type wrapper object
- */
- explicit type_wrapper(InnerType value)
- : m_value{std::move(value)}
- {
- }
-
- /**
- * @brief Retrieve the wrapped value with its original type
- */
- constexpr explicit operator InnerType const &() const { return get(); }
-
- /**
- * @brief Retrieve the wrapped value with its original type
- */
- constexpr InnerType const & get() const { return m_value; }
-
- private:
- InnerType m_value;
- };
-
-} // namespace wanda::meta
-
-#endif \ No newline at end of file