Cannot compile if put inside switch-case statement, because m_UpdateLastCommit is not constant value