... Note that "time" is highlighted. It's a C++ keyword.
Sorry for the tangent, but "time" is not a C++ keyword. The fact that it's highlighted is maybe because the syntax highlighter handles multiple languages, and "time" is a keyword in some of them (for instance, in the bash
shell); or maybe because there is a Unix/POSIX/C standard function called time()
from time.h
. But "time" is not a C or C++ keyword, and the global function time()
wouldn't conflict with a member variable called "time."