gcc compilation issue fixed

This commit is contained in:
Johan Mabille 2016-02-12 16:08:19 +01:00 committed by jmabille
parent 7e8ece8f3d
commit 2d0ff0e777
2 changed files with 3 additions and 2 deletions

View File

@ -259,7 +259,7 @@ struct vectorize_helper {
for (output_iterator iter = array_begin<Return>(output); iter != output_end; ++iter, ++input_iter) for (output_iterator iter = array_begin<Return>(output); iter != output_end; ++iter, ++input_iter)
{ {
*iter = f(input_iter.data<Index, Args>()...); *iter = f((input_iter.data<Index, Args>())...);
} }
} }

View File

@ -54,7 +54,8 @@ public:
void resize(size_type size, const_reference t) void resize(size_type size, const_reference t)
{ {
size_type old_size = m_size; size_type old_size = m_size;
resize(size); std::fill(begin() + old_size, end(), t); resize(size);
std::fill(begin() + old_size, end(), t);
} }
reference operator[](size_type i) { return m_data[i]; } reference operator[](size_type i) { return m_data[i]; }