From 11734b0bf48b926a5f25d8db9e5b8f471fb48e35 Mon Sep 17 00:00:00 2001 From: Nicolas Clauvelin Date: Thu, 22 Feb 2018 17:02:59 -0500 Subject: [PATCH] FIX POWERPC COMPILATION ISSUE For some reason compilers other than GCC PowerPC 4.5.8 were not complaining about the `use_shadow` being (re)defined outside the `Shadow` structure definition. This closes #2. --- register/ShadowValue.h | 2 -- single/cppreg-all.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/register/ShadowValue.h b/register/ShadowValue.h index 55c71cd..91e9727 100644 --- a/register/ShadowValue.h +++ b/register/ShadowValue.h @@ -43,8 +43,6 @@ namespace cppreg { }; template typename Register::type Shadow::value = Register::reset; - template - const bool Shadow::use_shadow; } diff --git a/single/cppreg-all.h b/single/cppreg-all.h index b05ebcc..4cf9b9b 100644 --- a/single/cppreg-all.h +++ b/single/cppreg-all.h @@ -134,8 +134,6 @@ namespace cppreg { }; template typename Register::type Shadow::value = Register::reset; - template - const bool Shadow::use_shadow; } #endif