Skip to content
Snippets Groups Projects
Commit 3b6bf77f authored by Dipl.-Ing. Jonas Stienen's avatar Dipl.-Ing. Jonas Stienen
Browse files

Removed deprecated for_each to fix build break fix with recent c++ version

parent 2f28874f
No related branches found
No related tags found
No related merge requests found
......@@ -44,21 +44,4 @@ inline void mapDeleteFunctor( const std::pair<T1, T2>& elem )
delete elem.second;
}
// --= Erweiterte for_each Funktionen =--
// o Container speichert Zeiger auf Instanzen der Klasse T
// o for_each ruft auf allen Instanzen eine Methode der Klasse T auf
/* Beispiel:
class Auto() { void Hupe(); }
std::vector<Auto*> cars;
for_each(cars, &Auto::Hupe);
*/
template<class S, class T>
inline void for_each( std::vector<T*>& v, S ( T::*f )( ) )
{
std::for_each( v.begin( ), v.end( ), std::mem_fun( f ) );
}
#endif // INCLUDE_WATCHER_ITA_FUNCTORS
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