summaryrefslogtreecommitdiffhomepage
path: root/main-window/mixin-traits.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-11-03 06:48:51 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-11-03 06:48:51 +0100
commit310ca879118282f25b6cb2ae681627934278607a (patch)
tree71221b30269f84ceb75610960af8f963df94a7ed /main-window/mixin-traits.cpp
parent0148a75d4b5301d279dd8c29ecbaeb9c85cf9efb (diff)
fix some mixin stuff, still not done
Diffstat (limited to 'main-window/mixin-traits.cpp')
-rw-r--r--main-window/mixin-traits.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/main-window/mixin-traits.cpp b/main-window/mixin-traits.cpp
index 5dc2efd8..b74a6f7a 100644
--- a/main-window/mixin-traits.cpp
+++ b/main-window/mixin-traits.cpp
@@ -43,16 +43,17 @@ void test1()
struct W : C, A {};
struct Q : virtual W, virtual D {};
-#if 0
- (void)impl<Q, W>(); // W not a mixin
- (void)impl<V, A>(); // A
- (void)impl<V, D>(); // D => C => A
- (void)impl<V, D>(); // D => C => A
- (void)impl<W, C, B>(); // B
+//#define SHOULD_NOT_COMPILE
+#ifdef SHOULD_NOT_COMPILE
+ (void)impl<Q, W>{}; // W not a mixin
+ (void)impl<V, A>{}; // A
+ (void)impl<V, D>{}; // D => C => A
+ (void)impl<V, D>{}; // D => C => A
+ (void)impl<W, C, B>{}; // B
#else
- (void)impl<U, B>();
- (void)impl<W, C>();
- (void)impl<Q, D, A>();
+ (void)impl<U, B>{};
+ (void)impl<W, C>{};
+ (void)impl<Q, D, A>{};
#endif
}