Remove iostreams include again, but commenting out a bit of debug code too

There should be really no reason to include iostreams in header files
and force its contents upon units that don't require it.
This commit is contained in:
Ignacio R. Morelle 2012-02-29 18:23:00 +00:00
parent c236b725f9
commit 73ff9dd06f

View File

@ -24,7 +24,6 @@
#include <cassert>
#include <list>
#include <iostream>
#include <boost/unordered_map.hpp>
class unit;
@ -191,11 +190,14 @@ public:
return i_->unit; }
reference operator*() const {
tank_->self_check();
#if 0
// debug!
if(!valid()){
if(!tank_){std::cerr<<"tank is NULL"<<"\n";}
if(i_==the_end()){std::cerr<<"i_ is the end"<<"\n";}
if(i_->unit==NULL){std::cerr<<"i_ unit is NULL with uid="<<i_->deleted_uid<<"\n";}
}
#endif
assert(valid());
return *i_->unit; }