Есть такой код:
template< class Container >
void Initialize( const Container &hosts )
{
typename Container::const_iterator it = hosts.begin();
for( ; it != hosts.end(); ++it )
{
//workers_.AddWorker( new Worker( (const std::string &)( *it ) ) );
}
}
std::list< std::string > hosts;
mgr.Initialize( hosts );
error: conversion from std::_List_const_iterator<...> to non-scalar type std::_Rb_tree_const_iterator<...> requested
typename Container::const_iterator it = hosts.begin();