Skip to content

Commit

Permalink
decltype is_null type, bool* or my_bool*
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacyking committed Aug 23, 2023
1 parent 1c3e791 commit 90fef44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/mysql.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ class mysql {

template <typename T, typename B>
void set_param_bind(MYSQL_BIND &param_bind, T &&value, int i,
std::map<size_t, std::vector<char>> &mp, B &&is_null) {
std::map<size_t, std::vector<char>> &mp, B &is_null) {
using U = std::remove_const_t<std::remove_reference_t<T>>;
if constexpr (is_optional_v<U>::value) {
return set_param_bind(param_bind, *value, i, mp, is_null);
Expand Down Expand Up @@ -377,7 +377,7 @@ class mysql {
param_bind.buffer = &(mp.rbegin()->second[0]);
param_bind.buffer_length = 65536;
}
param_bind.is_null = is_null;
param_bind.is_null = (B)&is_null;
}

template <typename T>
Expand Down

0 comments on commit 90fef44

Please sign in to comment.