From 7fcdf8c9fd0631d337e457a32b10e9cadb183cf3 Mon Sep 17 00:00:00 2001 From: Jacyking <791026912@qq.com> Date: Fri, 25 Aug 2023 17:22:31 +0800 Subject: [PATCH] fix bug on mac --- include/mysql.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/mysql.hpp b/include/mysql.hpp index c65cd979..5d54db27 100644 --- a/include/mysql.hpp +++ b/include/mysql.hpp @@ -153,7 +153,8 @@ class mysql { int get_last_affect_rows() { return (int)mysql_affected_rows(con_); } template - void set_param_bind(std::vector ¶m_binds, T &&value) { + constexpr void set_param_bind(std::vector ¶m_binds, + T &&value) { MYSQL_BIND param = {}; using U = std::remove_const_t>; @@ -192,9 +193,8 @@ class mysql { } template - constexpr void set_param_bind(MYSQL_BIND ¶m_bind, T &&value, int i, - std::map> &mp, - B &is_null) { + void set_param_bind(MYSQL_BIND ¶m_bind, T &&value, int i, + std::map> &mp, B &is_null) { using U = std::remove_const_t>; if constexpr (is_optional_v::value) { return set_param_bind(param_bind, *value, i, mp, is_null);