Lars Gullik Bj�nnes wrote:
> Right.
> 
> With debug mode turned on it uses safe iterators (checked
> iterators), that check if iterators compared belong to the same
> container etc. checks some bounds for containers, check that
> algorithm requirements are fullfilled etc.
> 
> So if we are able to run in debug mode without warnings we will have
> a more robust program.
> 
> So... only the two files in question needed to have paragraph.h
> included.

Sorry to flog a dead horse, but I just want to check that we are doing 
this right...

Each header file should be self-contained, right? Ie, I should be able 
to compile a .C file containing only #include "buffer.h". Using your 
debug mode with g++-3.4 this will work with the code as-is because no 
Buffer::inset_iterator is instantiated. Only when we instantiate the 
iterator do we need "paragraph.h".

Ok, I think I understand.

Thanks for your patience.

-- 
Angus

Reply via email to