C++ syntax issue
- by Doug
It's late and I can't figure out what is wrong with my syntax. I have asked other people and they can't find the syntax error either so I came here on a friend's advice.
template <typename TT>
bool PuzzleSolver<TT>::solve ( const Clock &pz ) {
possibConfigs_.push( pz.getInitial() );
vector< Configuration<TT> > next_;
//error is on next line
map< Configuration<TT> ,Configuration<TT> >::iterator found;
while ( !possibConfigs_.empty() && possibConfigs_.front() != pz.getGoal() ) {
Configuration<TT> cfg = possibConfigs_.front();
possibConfigs_.pop();
next_ = pz.getNext( cfg );
for ( int i = 0; i < next_.size(); i++ ) {
found = seenConfigs_.find( next_[i] );
if ( found != seenConfigs_.end() ) {
possibConfigs_.push( next_[i] );
seenConfigs_.insert( make_pair( next_[i], cfg ) );
}
}
}
}
What is wrong?
Thanks for any help.