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:
Alexander Golubev 2015-05-17 19:39:10 +03:00 committed by wmayer
parent de2f8a26b2
commit cf652c8410
7 changed files with 23 additions and 8 deletions

View File

@ -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__)

View File

@ -16,7 +16,8 @@
#include "Wm4FoundationPCH.h"
#include "Wm4Matrix2.h"
using namespace Wm4;
namespace Wm4 {
template<> const Matrix2<float> Matrix2<float>::ZERO(
0.0f,0.0f,
@ -31,3 +32,4 @@ template<> const Matrix2<double> Matrix2<double>::ZERO(
template<> const Matrix2<double> Matrix2<double>::IDENTITY(
1.0,0.0,
0.0,1.0);
}

View File

@ -16,7 +16,8 @@
#include "Wm4FoundationPCH.h"
#include "Wm4Matrix3.h"
using namespace Wm4;
namespace Wm4 {
template<> const Matrix3<float> Matrix3<float>::ZERO(
0.0f,0.0f,0.0f,
@ -35,3 +36,5 @@ template<> const Matrix3<double> Matrix3<double>::IDENTITY(
1.0,0.0,0.0,
0.0,1.0,0.0,
0.0,0.0,1.0);
}

View File

@ -16,7 +16,8 @@
#include "Wm4FoundationPCH.h"
#include "Wm4Matrix4.h"
using namespace Wm4;
namespace Wm4 {
template<> const Matrix4<float> Matrix4<float>::ZERO(
0.0f,0.0f,0.0f,0.0f,
@ -39,3 +40,4 @@ template<> const Matrix4<double> Matrix4<double>::IDENTITY(
0.0,1.0,0.0,0.0,
0.0,0.0,1.0,0.0,
0.0,0.0,0.0,1.0);
}

View File

@ -16,7 +16,8 @@
#include "Wm4FoundationPCH.h"
#include "Wm4Vector2.h"
using namespace Wm4;
namespace Wm4 {
template<> const Vector2<float> Vector2<float>::ZERO(0.0f,0.0f);
template<> const Vector2<float> Vector2<float>::UNIT_X(1.0f,0.0f);
@ -28,3 +29,4 @@ template<> const Vector2<double> Vector2<double>::UNIT_X(1.0,0.0);
template<> const Vector2<double> Vector2<double>::UNIT_Y(0.0,1.0);
template<> const Vector2<double> Vector2<double>::ONE(1.0,1.0);
}

View File

@ -16,7 +16,8 @@
#include "Wm4FoundationPCH.h"
#include "Wm4Vector3.h"
using namespace Wm4;
namespace Wm4 {
template<> const Vector3<float> Vector3<float>::ZERO(0.0f,0.0f,0.0f);
template<> const Vector3<float> Vector3<float>::UNIT_X(1.0f,0.0f,0.0f);
@ -31,3 +32,5 @@ template<> const Vector3<double> Vector3<double>::UNIT_Y(0.0,1.0,0.0);
template<> const Vector3<double> Vector3<double>::UNIT_Z(0.0,0.0,1.0);
template<> const Vector3<double> Vector3<double>::ONE(1.0,1.0,1.0);
/// @endcond
}

View File

@ -16,7 +16,8 @@
#include "Wm4FoundationPCH.h"
#include "Wm4Vector4.h"
using namespace Wm4;
namespace Wm4 {
template<> const Vector4<float> Vector4<float>::ZERO(0.0f,0.0f,0.0f,0.0f);
template<> const Vector4<float> Vector4<float>::UNIT_X(1.0f,0.0f,0.0f,0.0f);
@ -31,3 +32,5 @@ template<> const Vector4<double> Vector4<double>::UNIT_Y(0.0,1.0,0.0,0.0);
template<> const Vector4<double> Vector4<double>::UNIT_Z(0.0,0.0,1.0,0.0);
template<> const Vector4<double> Vector4<double>::UNIT_W(0.0,0.0,0.0,1.0);
template<> const Vector4<double> Vector4<double>::ONE(1.0,1.0,1.0,1.0);
}