[vtk-developers] Use of assert

Ken Martin ken.martin at kitware.com
Thu Jul 21 10:03:18 EDT 2005

Since I am seeing more use of assert in VTK, such as...

    assert(numPieces > 0);

is there a reason why we shouldn't require that people comment their assert
statements? For example the above assert should be 

assert(numPieces > 0 && "OffsetGroupManager allocation requested for
numPieces <= 0")

I think on most systems if the debugger is not invoked the content of the
assert will be displayed at least. Am I missing something?


More information about the vtk-developers mailing list