For a programming project I need to have an array of an object (declared using typedef) with various functions for adding, removing, and iterating through it.
My class is called DrawList and in my DrawList.h file I have this line: typedef MyRect value_type;
and then in the .cpp file I have these two functions:
With the lines commented out the code compiles correctly, but if I try to set an element to NULL or use NULL as a value_type the compiler throws an error.