move rvalue to the left in comparison and make parameter `status` const