Warning fix on clang

This commit is contained in:
King_DuckZ 2016-11-02 02:42:42 +01:00
parent d9ac0531b3
commit 8af1a36baa
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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;
} }
} }