# 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-9d2fd5bffc1fpull/1/head
parent
68a10dd1b0
commit
89b6c2b288
|
@ -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
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Reference in New Issue