Changed gun.reset() to gun = boost::none.