diff options
author | Mateusz Chudyk <mateuszchudyk@gmail.com> | 2019-06-21 19:06:44 +0300 |
---|---|---|
committer | Mateusz Chudyk <mateuszchudyk@gmail.com> | 2019-06-25 15:34:05 +0300 |
commit | 3c0bd36dd8261fb75cd2b2f9d43aa4761decb85a (patch) | |
tree | eaedf2d0a4c34495457e2445aeefa67c2266429c | |
parent | 87300766c10c4f953908735f69fcfd3a9e14fe1e (diff) |
Use std::forward in CreatePostprocessPipeline
-rw-r--r-- | postprocess_pipeline.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/postprocess_pipeline.h b/postprocess_pipeline.h index ad26ac5..361ff2b 100644 --- a/postprocess_pipeline.h +++ b/postprocess_pipeline.h @@ -12,8 +12,8 @@ template <typename... Stages> using PostprocessPipeline = std::tuple<Stages...>; template <typename... Stages> -constexpr std::tuple<Stages...> CreatePostprocessPipeline(const Stages&... stages) { - return std::make_tuple(stages...); +constexpr std::tuple<Stages...> CreatePostprocessPipeline(Stages&&... stages) { + return std::make_tuple(std::forward<Stages>(stages)...); } template <typename Postprocess, CPUType CpuType> |