
Just to clarify A singular iterator can be safely compared with other iterators. It can not be dereferenced or incremented. A default constructed boost::counting_iterator<unsigned> can not safely be compared. send from a mobile device. Prof. Peter Sommerlad peter.Sommerlad@hsr.ch +41-79-432 23 32 On 05.12.2012, at 17:19, "Claas H. Köhler" <claas.koehler@dlr.de> wrote:
On Wed, Dec 5, 2012 at 2:40 PM, "Claas H. Köhler" <claas.koehler@dlr.de> wrote:
I guess this also means, that it is possible to detect singular iterators even if they are initialised upon default construction.
Only if they've got special debug code and not if they're types like int. Correct. Basically this would require a boost equivalent of the safe_iterator (that's what its called in gcc), which could be used to wrap the boost iterators for debugging. Although this is not a
On 05/12/12 16:44, Olaf van der Spek wrote: trivial task, it seems preferable to me over leaving members uninitialised for the sake of (arguably) improved debugging capability.
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost