diff --git a/boost/numeric/odeint/external/thrust/thrust_algebra.hpp b/boost/numeric/odeint/external/thrust/thrust_algebra.hpp index 7eab72b7..05e6a92e 100644 --- a/boost/numeric/odeint/external/thrust/thrust_algebra.hpp +++ b/boost/numeric/odeint/external/thrust/thrust_algebra.hpp @@ -63,7 +63,7 @@ struct thrust_algebra template< class StateType , class Operation > static void for_each1( StateType &s , Operation op ) { - thrust::for_each( boost::begin(s) , boost::begin(s) , op ); + thrust::for_each( boost::begin(s) , boost::end(s) , op ); } template< class StateType1 , class StateType2 , class Operation >