Template:cpp/error/inc logic error