summaryrefslogtreecommitdiff
path: root/libodbcpp/odbc-error.cpp
diff options
context:
space:
mode:
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)...);
}
};
}