From 41aea1dff36499c683e21bf590f3e908a48c50ff Mon Sep 17 00:00:00 2001
From: znone <glyc@sina.com.cn>
Date: Fri, 17 Jan 2020 13:30:18 +0000
Subject: [PATCH] Fix some bugs.
---
include/qtl_common.hpp | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/include/qtl_common.hpp b/include/qtl_common.hpp
index aaaa0d6..34436c2 100644
--- a/include/qtl_common.hpp
+++ b/include/qtl_common.hpp
@@ -294,12 +294,6 @@
#endif // C++17
-template<typename Command, typename... Fields>
-inline size_t bind_fields(Command& command, Fields&&... fields)
-{
- return bind_fields(command, (size_t)0, std::forward<Fields>(fields)...);
-}
-
template<typename Command, typename T>
inline size_t bind_fields(Command& command, size_t index, T&& value)
{
@@ -314,6 +308,12 @@
return bind_fields(command, start+1, std::forward<Other>(other)...);
}
+template<typename Command, typename... Fields>
+inline size_t bind_fields(Command& command, Fields&&... fields)
+{
+ return bind_fields(command, (size_t)0, std::forward<Fields>(fields)...);
+}
+
namespace detail
{
--
Gitblit v1.9.3