diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-03-17 19:45:15 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-03-17 19:45:15 +0000 |
commit | 704dd8c7ecedb68161c52329e22141877143ff13 (patch) | |
tree | 0f803a65439b03fc66f523d3d311ed842d66e716 /libodbcpp/odbc-error.cpp | |
parent | enum class BulkUpdates (diff) | |
download | libdbpp-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.cpp | 5 |
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)...); } }; } |