From 01b8b8d586a2b44528df2c536bc532ad76cc098c Mon Sep 17 00:00:00 2001 From: Innokentiy Alaytsev Date: Wed, 25 Feb 2026 15:28:47 +0400 Subject: [PATCH] Fix an incorrect soci::use function overload Previously an overload of the soci::use function accepted a value of type T and a vector of indicators. This function worked when T was std::vector, but would fail if T was any other type. Judging by the comment, the original intent was to have an overload for std::vector. Closes #1334. Closes #1336. Signed-off-by: Innokentiy Alaytsev --- include/soci/use.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/soci/use.h b/include/soci/use.h index a848accf..c5ab8c4b 100644 --- a/include/soci/use.h +++ b/include/soci/use.h @@ -71,9 +71,9 @@ details::use_container use(T const &t, indicator & ind, std: // vector containers template -details::use_container > - use(T &t, std::vector & ind, const std::string &name = std::string()) -{ return details::use_container >(t, ind, name); } +details::use_container, std::vector > + use(std::vector &t, std::vector & ind, const std::string &name = std::string()) +{ return details::use_container, std::vector >(t, ind, name); } template details::use_container, details::no_indicator >