Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/intgemm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Chudyk <mateuszchudyk@gmail.com>2019-06-21 19:06:44 +0300
committerMateusz Chudyk <mateuszchudyk@gmail.com>2019-06-25 15:34:05 +0300
commit3c0bd36dd8261fb75cd2b2f9d43aa4761decb85a (patch)
treeeaedf2d0a4c34495457e2445aeefa67c2266429c
parent87300766c10c4f953908735f69fcfd3a9e14fe1e (diff)
Use std::forward in CreatePostprocessPipeline
-rw-r--r--postprocess_pipeline.h4
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>