Fix some build errors in certain cases.
- wrapped vector is not guaranteed to have constructors - vector_type is not necessary - has typedef and has enum were not always working
This commit is contained in:
parent
9b107d6e82
commit
d3b63aab8c
4 changed files with 26 additions and 18 deletions
|
@ -154,7 +154,6 @@ namespace vwr {
|
|||
typedef Vec<MixedDataVector3> mvec3;
|
||||
typedef Vec<PaddedVector3> pvec3;
|
||||
|
||||
static_assert(not implem::HasOffsetXEnum<float>::value, "Should return false");
|
||||
static_assert(sizeof(svec1) == sizeof(float), "Wrong size");
|
||||
static_assert(sizeof(svec2) == sizeof(SimpleVector2), "Wrong size");
|
||||
static_assert(sizeof(svec3) == sizeof(SimpleVector3), "Wrong size");
|
||||
|
@ -163,6 +162,10 @@ namespace vwr {
|
|||
static_assert(sizeof(ivec3) == sizeof(IntVector3), "Wrong size");
|
||||
static_assert(sizeof(mvec3) == sizeof(MixedDataVector3), "Wrong size");
|
||||
static_assert(sizeof(pvec3) == sizeof(PaddedVector3), "Wrong size");
|
||||
|
||||
//Vector Wrapper debug assertions
|
||||
static_assert(not implem::HasOffsetXEnum<VectorWrapperInfo<float>>::value, "Should return false");
|
||||
static_assert(implem::HasOffsetXEnum<VectorWrapperInfo<SimpleVector2>>::value, "Should return true");
|
||||
} //namespace vwr
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue