Made static_assert useful

Former-commit-id: 135783fe3ee3f5304309dd6948f0a83a349e62b2
This commit is contained in:
Lynix
2013-10-09 10:09:48 +02:00
parent eefd0ddd35
commit 14eda38cac
2 changed files with 25 additions and 25 deletions

View File

@@ -10,7 +10,7 @@
namespace
{
unsigned int attributeSize[nzAttributeType_Max+1] =
unsigned int attributeSize[] =
{
4, // nzAttributeType_Color
1, // nzAttributeType_Double1
@@ -25,7 +25,7 @@ namespace
static_assert(sizeof(attributeSize)/sizeof(unsigned int) == nzAttributeType_Max+1, "Attribute size array is incomplete");
unsigned int attributeStride[nzAttributeType_Max+1] =
unsigned int attributeStride[] =
{
4*sizeof(nzUInt8), // nzAttributeType_Color
1*sizeof(double), // nzAttributeType_Double1