Mod/Mesh: suppress bunch of warnings on C++11 usage
Warnings was like: src/Mod/Mesh/App/WildMagic4/Wm4Vector4.cpp|21 col 49| warning: first declaration of static data member specialization of 'ZERO' outside namespace 'Wm4' is a C++11 extension [-Wc++11-extensions]
This commit is contained in:
committed by
wmayer
parent
5b469a4078
commit
8fdf8367ad
@@ -16,7 +16,8 @@
|
||||
|
||||
#include "Wm4FoundationPCH.h"
|
||||
#include "Wm4Math.h"
|
||||
using namespace Wm4;
|
||||
|
||||
namespace Wm4 {
|
||||
|
||||
template<> const float Math<float>::EPSILON = FLT_EPSILON;
|
||||
template<> const float Math<float>::ZERO_TOLERANCE = 1e-06f;
|
||||
@@ -48,7 +49,6 @@ template<> const double Math<double>::LN_10 = Math<double>::Log(10.0);
|
||||
template<> const double Math<double>::INV_LN_2 = 1.0/Math<double>::LN_2;
|
||||
template<> const double Math<double>::INV_LN_10 = 1.0/Math<double>::LN_10;
|
||||
|
||||
namespace Wm4 {
|
||||
//----------------------------------------------------------------------------
|
||||
//Does not compile with gcc 4.1.2
|
||||
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__)
|
||||
|
||||
Reference in New Issue
Block a user