From 046b8f5b04d377ffb1fe4f286e9ff424901b6d14 Mon Sep 17 00:00:00 2001 From: Jan Travnicek <Jan.Travnicek@fit.cvut.cz> Date: Wed, 9 Aug 2017 15:10:40 +0200 Subject: [PATCH] make parameters of modifying functions nonconst --- alib2std/src/extensions/vector.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/alib2std/src/extensions/vector.hpp b/alib2std/src/extensions/vector.hpp index 97e7434247..6a9d671f1a 100644 --- a/alib2std/src/extensions/vector.hpp +++ b/alib2std/src/extensions/vector.hpp @@ -297,8 +297,8 @@ bool any ( const ext::vector < bool, Ts ... > & v ) { } template < class ... Ts > -void fill ( const ext::vector < bool, Ts ... > & v ) { - typename ext::vector < bool, Ts ... >::const_iterator itV = v.begin ( ); +void fill ( ext::vector < bool, Ts ... > & v ) { + typename ext::vector < bool, Ts ... >::iterator itV = v.begin ( ); // c++ implementation-specific while ( itV < v.end ( ) ) @@ -306,8 +306,8 @@ void fill ( const ext::vector < bool, Ts ... > & v ) { } template < class ... Ts > -void clear ( const ext::vector < bool, Ts ... > & v ) { - typename ext::vector < bool, Ts ... >::const_iterator itV = v.begin ( ); +void clear ( ext::vector < bool, Ts ... > & v ) { + typename ext::vector < bool, Ts ... >::iterator itV = v.begin ( ); // c++ implementation-specific while ( itV < v.end ( ) ) -- GitLab