summaryrefslogtreecommitdiff
path: root/libdbpp/selectcommandUtil.impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'libdbpp/selectcommandUtil.impl.h')
-rw-r--r--libdbpp/selectcommandUtil.impl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdbpp/selectcommandUtil.impl.h b/libdbpp/selectcommandUtil.impl.h
index ec1d56a..9ef901e 100644
--- a/libdbpp/selectcommandUtil.impl.h
+++ b/libdbpp/selectcommandUtil.impl.h
@@ -8,11 +8,11 @@
namespace DB {
template<typename Fields, typename Func, unsigned int field, typename... Fn, typename... Args>
inline void
- forEachField(DB::SelectCommand * sel, const Func & func, const Args &... args)
+ forEachField(DB::SelectCommand * sel, const Func & func, Args &&... args)
{
if constexpr (field >= std::tuple_size<Fields>::value) {
(void)sel;
- func(args...);
+ func(std::forward<Args>(args)...);
}
else {
typename std::tuple_element<field, Fields>::type a;