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.cpp | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'main-window/mixin-traits.cpp') 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(); // W not a mixin - (void)impl(); // A - (void)impl(); // D => C => A - (void)impl(); // D => C => A - (void)impl(); // B +//#define SHOULD_NOT_COMPILE +#ifdef SHOULD_NOT_COMPILE + (void)impl{}; // W not a mixin + (void)impl{}; // A + (void)impl{}; // D => C => A + (void)impl{}; // D => C => A + (void)impl{}; // B #else - (void)impl(); - (void)impl(); - (void)impl(); + (void)impl{}; + (void)impl{}; + (void)impl{}; #endif } -- cgit v1.2.3