From 2d0ff0e777c1f8b2927f6d2d75292baa09e3e822 Mon Sep 17 00:00:00 2001 From: Johan Mabille Date: Fri, 12 Feb 2016 16:08:19 +0100 Subject: [PATCH] gcc compilation issue fixed --- include/pybind11/numpy.h | 2 +- include/pybind11/short_vector.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/pybind11/numpy.h b/include/pybind11/numpy.h index cb46a871a..2072591d5 100644 --- a/include/pybind11/numpy.h +++ b/include/pybind11/numpy.h @@ -259,7 +259,7 @@ struct vectorize_helper { for (output_iterator iter = array_begin(output); iter != output_end; ++iter, ++input_iter) { - *iter = f(input_iter.data()...); + *iter = f((input_iter.data())...); } } diff --git a/include/pybind11/short_vector.h b/include/pybind11/short_vector.h index 2ac60d5c1..5df02ef3e 100644 --- a/include/pybind11/short_vector.h +++ b/include/pybind11/short_vector.h @@ -54,7 +54,8 @@ public: void resize(size_type size, const_reference t) { 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]; }