From 6fd16aeac962cd80a37307fa90e3eb9a7102330b Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 14 Jul 2021 01:31:35 +0100 Subject: Pass bindings as a span, only wrap with initializer_list --- lib/input/mysqlStmt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/input/mysqlStmt.cpp') diff --git a/lib/input/mysqlStmt.cpp b/lib/input/mysqlStmt.cpp index e0f4cbc..0a80258 100644 --- a/lib/input/mysqlStmt.cpp +++ b/lib/input/mysqlStmt.cpp @@ -15,7 +15,7 @@ namespace MyGrate::Input { } void - MySQLPrepStmt::execute(const std::initializer_list & vs) + MySQLPrepStmt::execute(const std::span vs) { Bindings b {vs}; verify(!mysql_stmt_bind_param(stmt.get(), b.binds.data()), "Param count mismatch"); -- cgit v1.2.3