J
jimjim
Hello All,
Assume:
class AnObjectType{
typedef std::list <AnotherObjectType> Collection;
typedef SmartIterator <Collection> Iterator;
Iterator get( void);
Collection mCollection;
}
AnObjectType::Iterator AnObjectType::get( ){ //does Iterator need to be
qualified (AnObjectType: here, and why?
Collection::iterator scit ;
return AnObjectType::Iterator(mServiceCollection); //does Iterator need
to be qualified here, and why?
}
TIA
Assume:
class AnObjectType{
typedef std::list <AnotherObjectType> Collection;
typedef SmartIterator <Collection> Iterator;
Iterator get( void);
Collection mCollection;
}
AnObjectType::Iterator AnObjectType::get( ){ //does Iterator need to be
qualified (AnObjectType: here, and why?
Collection::iterator scit ;
return AnObjectType::Iterator(mServiceCollection); //does Iterator need
to be qualified here, and why?
}
TIA