# make noboost`s BOOST_FOREACH work with const containers

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1024 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/1/head
aramis_acg 2011-05-31 18:13:13 +00:00
parent 68a10dd1b0
commit 89b6c2b288
1 changed files with 6 additions and 0 deletions

View File

@ -76,6 +76,12 @@ typename T::reference deref(auto_any_base const& cur, T&)
return *auto_any_cast<typename T::iterator>(cur); return *auto_any_cast<typename T::iterator>(cur);
} }
template<typename T>
typename T::const_reference deref(auto_any_base const& cur, const T&)
{
return *auto_any_cast<typename T::iterator>(cur);
}
} // end foreach_detail } // end foreach_detail
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////