summaryrefslogtreecommitdiff
path: root/libodbcpp/odbc-error.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-03-17 19:45:15 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-03-17 19:45:15 +0000
commit704dd8c7ecedb68161c52329e22141877143ff13 (patch)
tree0f803a65439b03fc66f523d3d311ed842d66e716 /libodbcpp/odbc-error.cpp
parentenum class BulkUpdates (diff)
downloadlibdbpp-odbc-main.tar.bz2
libdbpp-odbc-main.tar.xz
libdbpp-odbc-main.zip
Lots of pass by value and perfect forwarding optimisationsHEADlibdbpp-odbc-1.4.7main
Diffstat (limited to 'libodbcpp/odbc-error.cpp')
-rw-r--r--libodbcpp/odbc-error.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libodbcpp/odbc-error.cpp b/libodbcpp/odbc-error.cpp
index d2379ae..89f2f59 100644
--- a/libodbcpp/odbc-error.cpp
+++ b/libodbcpp/odbc-error.cpp
@@ -3,17 +3,18 @@
#include <array>
#include <compileTimeFormatter.h>
#include <cstddef>
+#include <utility>
// IWYU pragma: no_include <boost/test/unit_test.hpp>
namespace AdHoc {
StreamWriterT('5') {
template<std::size_t l, typename... Pn>
static void
- write(stream & s, const std::array<SQLCHAR, l> & sqlstatus, const Pn &... pn)
+ write(stream & s, const std::array<SQLCHAR, l> & sqlstatus, Pn &&... pn)
{
static_assert(l > 5);
s.write(reinterpret_cast<const char * const>(sqlstatus.data()), 5);
- StreamWriter::next(s, pn...);
+ StreamWriter::next(s, std::forward<Pn>(pn)...);
}
};
}