diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2021-12-17 17:51:32 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2021-12-17 20:27:17 +0100 |
commit | 756d2925904ca87266fc30c3d84b9c3682c73fce (patch) | |
tree | cd4b4ac87e95de4795b4a63ee4c5b9707299f0d6 /main-window/mixin-traits.hpp | |
parent | c174ccfb7b22cfc39c03b153d112b43f8cbd92fa (diff) |
opentrack: kill unfinished obsolete code
Diffstat (limited to 'main-window/mixin-traits.hpp')
-rw-r--r-- | main-window/mixin-traits.hpp | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/main-window/mixin-traits.hpp b/main-window/mixin-traits.hpp deleted file mode 100644 index 45df7fdb..00000000 --- a/main-window/mixin-traits.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#pragma once - -#include "compat/meta.hpp" - -#include <type_traits> - -namespace mixins::traits_detail { - - using namespace meta; - - template<typename... xs> using tuple = tuple_<xs...>; - - template<typename t> - struct mixin_traits { - // implement this! - //using depends = tuple<>; - }; - - template<typename klass, typename...> struct check_depends_; - - template<typename klass> - struct check_depends_<klass> : std::true_type - { - }; - - template<typename klass, typename x, typename... xs> - struct check_depends_<klass, x, xs...> : - std::bool_constant< - std::is_base_of_v<x, klass> && - lift_v<check_depends_, cons<klass, typename mixin_traits<x>::depends>> && - check_depends_<klass, xs...>::value - > - { - }; - - template<typename klass, typename... xs> - struct impl - { - static_assert(lift<check_depends_, tuple<klass, xs...>>::value, - "class must inherit dependent mixins"); - }; -} // ns mixins::traits_detail |