Skip to content

Commit 1abf840

Browse files
committed
Improved code [skip ci]
1 parent 5d6a52f commit 1abf840

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
@@ -40,7 +40,7 @@ template <> struct string_traits<pgvector::Vector> {
4040
std::stringstream ss(std::string(text.substr(1, text.size() - 2)));
4141
while (ss.good()) {
4242
std::string substr;
43-
getline(ss, substr, ',');
43+
std::getline(ss, substr, ',');
4444
result.push_back(std::stof(substr));
4545
}
4646
return pgvector::Vector(result);
@@ -85,7 +85,7 @@ template <> struct string_traits<pgvector::HalfVector> {
8585
std::stringstream ss(std::string(text.substr(1, text.size() - 2)));
8686
while (ss.good()) {
8787
std::string substr;
88-
getline(ss, substr, ',');
88+
std::getline(ss, substr, ',');
8989
result.push_back(std::stof(substr));
9090
}
9191
return pgvector::HalfVector(result);

0 commit comments

Comments
 (0)