I:\CodeBlocks\Games\SDL\Events\main.cpp|69|error: could not convert '{false}' from '<brace-enclosed initializer list>' to 'Timer'|
|
|
Timer testtimer={false};
What are you trying to do here? Timer class does not have initialization list constructor defined like error says, so this line is malformed;
Timer() : paused(false), currentticks(0), pausedticks(0) {startticks=SDL_GetTicks();}
Timer(bool paused) : paused(false), currentticks(0), pausedticks(0) {startticks=SDL_GetTicks();}