diff --git a/code/BoostWorkaround/boost/foreach.hpp b/code/BoostWorkaround/boost/foreach.hpp index 205e888f5..e1d8d15d8 100644 --- a/code/BoostWorkaround/boost/foreach.hpp +++ b/code/BoostWorkaround/boost/foreach.hpp @@ -76,6 +76,12 @@ typename T::reference deref(auto_any_base const& cur, T&) return *auto_any_cast(cur); } +template +typename T::const_reference deref(auto_any_base const& cur, const T&) +{ + return *auto_any_cast(cur); +} + } // end foreach_detail ///////////////////////////////////////////////////////////////////////////////