Skip to content

Commit c14123c

Browse files
committed
Switched to move contructor
1 parent 10b798f commit c14123c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/pgvector/pqxx.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ template <> struct string_traits<pgvector::Vector> {
4141
result.push_back(string_traits<float>::from_string(substr, c));
4242
}
4343
}
44-
return pgvector::Vector(result);
44+
return pgvector::Vector(std::move(result));
4545
}
4646

4747
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> {
7878
result.push_back(string_traits<float>::from_string(substr, c));
7979
}
8080
}
81-
return pgvector::HalfVector(result);
81+
return pgvector::HalfVector(std::move(result));
8282
}
8383

8484
static std::string_view to_buf(std::span<char> buf, const pgvector::HalfVector& value, ctx c = {}) {

0 commit comments

Comments
 (0)