Skip to content
Snippets Groups Projects
Commit 04c7da38 authored by Axel Naumann's avatar Axel Naumann
Browse files

Solaris cannot cast a rev_it to a const_rev_it; make the collection const

git-svn-id: http://root.cern.ch/svn/root/trunk@22815 27541ba8-7e3a-0410-8455-c3a389f83636
parent 61746fd3
No related branches found
No related tags found
No related merge requests found
...@@ -35,12 +35,12 @@ namespace Reflex { ...@@ -35,12 +35,12 @@ namespace Reflex {
template < typename CONT > template < typename CONT >
static typename std::vector<TO>::const_reverse_iterator RBegin( const CONT & cont ) { static typename std::vector<TO>::const_reverse_iterator RBegin( const CONT & cont ) {
return ((typename std::vector<TO> &)cont).rbegin(); return ((const typename std::vector<TO> &)cont).rbegin();
} }
template < typename CONT > template < typename CONT >
static typename std::vector<TO>::const_reverse_iterator REnd( const CONT & cont ) { static typename std::vector<TO>::const_reverse_iterator REnd( const CONT & cont ) {
return ((typename std::vector<TO> &)cont).rend(); return ((const typename std::vector<TO> &)cont).rend();
} }
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment