diff --git a/include/tao/pq/table_writer.hpp b/include/tao/pq/table_writer.hpp index d634793..18c25bf 100644 --- a/include/tao/pq/table_writer.hpp +++ b/include/tao/pq/table_writer.hpp @@ -32,7 +32,7 @@ namespace tao::pq template< std::size_t... Os, std::size_t... Is, typename... Ts > void insert_indexed( std::index_sequence< Os... > /*unused*/, std::index_sequence< Is... > /*unused*/, - const Ts...& ts ) + const Ts&... ts ) { std::string buffer; ( ( ts...[ Os ].template copy_to< Is >( buffer ), buffer += '\t' ), ... ); diff --git a/include/tao/pq/transaction.hpp b/include/tao/pq/transaction.hpp index 0b47017..13629a6 100644 --- a/include/tao/pq/transaction.hpp +++ b/include/tao/pq/transaction.hpp @@ -74,7 +74,7 @@ namespace tao::pq void send_indexed( const char* statement, std::index_sequence< Os... > /*unused*/, std::index_sequence< Is... > /*unused*/, - const Ts...& ts ) + const Ts&... ts ) { const Oid types[] = { static_cast< Oid >( ts...[ Os ].template type< Is >() )... }; const char* const values[] = { ts...[ Os ].template value< Is >()... };