GCC 9 has warnings about pessimistic return values which are triggered by returning a local value via std::move.