<div dir="ltr">Instead of creating two variables, wouldn't it be better to just remove the second definition and clear m_ec? You don't need to use both error codes side by side, as the second usage of m_ec occurs after the first one is finished. So you could remove the second definition and call clear() on it, to reset it. I think that way is clearer then introducing one new variable, no?</div>