Early on, the typedef unsigned int size_t was defined in namespace detran_utilities to reflect the various non-negative integers used throughout Detran. However, due in part to sloppy header use, size_t can yield unanticipated conflicts.
So, do the following:
[ ] remove size_t and u_int from utilities/Definitions.hh
[ ] identify all errors that arise from compiling all test cases
[ ] for each error, update method preconditions (i.e., Require statements) to enforce non-negative values as needed, and switch to int. Where an unsigned int is truly needed, write it out.
Early on, the
typedef unsigned int size_t
was defined innamespace detran_utilities
to reflect the various non-negative integers used throughout Detran. However, due in part to sloppy header use,size_t
can yield unanticipated conflicts.So, do the following:
size_t
andu_int
fromutilities/Definitions.hh
Require
statements) to enforce non-negative values as needed, and switch toint
. Where anunsigned int
is truly needed, write it out.