Fix numerous shadow-warnings for GCC<=4.8

This commit is contained in:
Christoph Hertzberg
2018-08-28 18:32:39 +02:00
parent ef4d79fed8
commit 73ca600bca
18 changed files with 58 additions and 11 deletions

View File

@@ -9,8 +9,12 @@
#include "main.h"
// GCC<=4.8 has spurious shadow warnings, because `ptr` re-appears inside template instantiations
// workaround: put these in an anonymous namespace
namespace {
float *ptr;
const float *const_ptr;
}
template<typename PlainObjectType,
bool IsDynamicSize = PlainObjectType::SizeAtCompileTime == Dynamic,