We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10b798f commit c14123cCopy full SHA for c14123c
include/pgvector/pqxx.hpp
@@ -41,7 +41,7 @@ template <> struct string_traits<pgvector::Vector> {
41
result.push_back(string_traits<float>::from_string(substr, c));
42
}
43
44
- return pgvector::Vector(result);
+ return pgvector::Vector(std::move(result));
45
46
47
static std::string_view to_buf(std::span<char> buf, const pgvector::Vector& value, ctx c = {}) {
@@ -78,7 +78,7 @@ template <> struct string_traits<pgvector::HalfVector> {
78
79
80
81
- return pgvector::HalfVector(result);
+ return pgvector::HalfVector(std::move(result));
82
83
84
static std::string_view to_buf(std::span<char> buf, const pgvector::HalfVector& value, ctx c = {}) {
0 commit comments