From 310ca879118282f25b6cb2ae681627934278607a Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 3 Nov 2018 06:48:51 +0100 Subject: fix some mixin stuff, still not done --- main-window/mixin-traits.hpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'main-window/mixin-traits.hpp') diff --git a/main-window/mixin-traits.hpp b/main-window/mixin-traits.hpp index 6a0206fc..45df7fdb 100644 --- a/main-window/mixin-traits.hpp +++ b/main-window/mixin-traits.hpp @@ -13,11 +13,7 @@ namespace mixins::traits_detail { template struct mixin_traits { // implement this! - using depends = tuple<>; - - // unconditional but at instantiation time - static_assert(sizeof(t) < sizeof(char), - "must specialize mixin_traits"); + //using depends = tuple<>; }; template struct check_depends_; @@ -31,7 +27,7 @@ namespace mixins::traits_detail { struct check_depends_ : std::bool_constant< std::is_base_of_v && - lift::depends>>::value && + lift_v::depends>> && check_depends_::value > { @@ -40,8 +36,7 @@ namespace mixins::traits_detail { template struct impl { - static constexpr bool class_must_inherit_dependent_mixins = - lift>::value; - static_assert(class_must_inherit_dependent_mixins); + static_assert(lift>::value, + "class must inherit dependent mixins"); }; } // ns mixins::traits_detail -- cgit v1.2.3