clover: Address unnecessary copy warnings
[mesa.git] / src / gallium / frontends / clover / util / functional.hpp
index fc281c5c79a6a139dd1fdf22c02d43755d3d7979..bf374c6b199956f20831957d1fc49ece78a94387 100644 (file)
@@ -266,7 +266,7 @@ namespace clover {
       S
       operator()(S &&it) const {
          std::advance(it, n);
-         return it;
+         return std::forward<S>(it);
       }
 
    private: