A Real Problem It compiles but will crash when run The += operator isn't the problem The problem is: T result = 0; This is a much more serious problem There is no general solution Care is required when using template functions