File asserts.h¶
Defines
-
LSST_THROW_IF_NE
(N1, N2, EXC_CLASS, MSG)¶ Check whether the given values are equal, and throw an LSST Exception if they are not.
The given message must include two Boost.Format placeholders for the two numbers.
For example:
LSST_THROW_IF_NE(3, 4, LengthError, "size of foo (%d) is not equal to size of bar (%d)");