Warning fix on clang
This commit is contained in:
parent
d9ac0531b3
commit
8af1a36baa
2 changed files with 2 additions and 2 deletions
|
@ -184,7 +184,7 @@ namespace vwr {
|
||||||
};
|
};
|
||||||
|
|
||||||
template <typename T, bool=HasOffsetXEnum<VectorWrapperInfo<T>>::value and std::is_standard_layout<T>::value>
|
template <typename T, bool=HasOffsetXEnum<VectorWrapperInfo<T>>::value and std::is_standard_layout<T>::value>
|
||||||
class VecGetter;
|
struct VecGetter;
|
||||||
template <typename T>
|
template <typename T>
|
||||||
struct VecGetter<T, true> {
|
struct VecGetter<T, true> {
|
||||||
static typename VectorWrapperInfo<T>::scalar_type& get_at ( T& parVec, std::size_t parIndex );
|
static typename VectorWrapperInfo<T>::scalar_type& get_at ( T& parVec, std::size_t parIndex );
|
||||||
|
|
|
@ -23,7 +23,7 @@ namespace vwr {
|
||||||
template <typename V>
|
template <typename V>
|
||||||
template <typename T>
|
template <typename T>
|
||||||
VecBase<V>::VecBase (const T& parInit, typename std::enable_if<std::is_same<T, scalar_type>::value and not std::is_same<scalar_type, vector_type>::value, bool>::type) {
|
VecBase<V>::VecBase (const T& parInit, typename std::enable_if<std::is_same<T, scalar_type>::value and not std::is_same<scalar_type, vector_type>::value, bool>::type) {
|
||||||
for (int z = 0; z < VectorWrapperInfo<V>::dimensions; ++z) {
|
for (std::size_t z = 0; z < VectorWrapperInfo<V>::dimensions; ++z) {
|
||||||
VecGetter<V>::get_at(m_wrapped, z) = parInit;
|
VecGetter<V>::get_at(m_wrapped, z) = parInit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue