mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-24 01:19:23 +00:00
gcc compilation issue fixed
This commit is contained in:
parent
7e8ece8f3d
commit
2d0ff0e777
@ -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>())...);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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]; }
|
||||||
|
Loading…
Reference in New Issue
Block a user