Made static_assert useful
Former-commit-id: 135783fe3ee3f5304309dd6948f0a83a349e62b2
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user