From 121e56738835b2d710d4612f567d07ced290af6e Mon Sep 17 00:00:00 2001
From: znone <glyc@sina.com.cn>
Date: Sat, 11 Jan 2020 13:55:34 +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