in the Debug.h file, I have the following:
#ifdef DEBUG_FLAG #define DEBUG(msg) std::cerr << #msg << std::endl #else #define DEBUG(msg) for(;
You also need the while (0) for your debug macro. Will be very painful to debug if/else cases without it (if you are lucky, you will get a compiler error). See this question for more details.
while (0)