Skip to content

Commit 24c4674

Browse files
committed
Fixed cpplint warnings
1 parent 6ce7633 commit 24c4674

File tree

6 files changed

+8
-1
lines changed

6 files changed

+8
-1
lines changed

examples/sparse/example.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <cstdint>
99
#include <iostream>
1010
#include <string>
11+
#include <unordered_map>
1112
#include <vector>
1213

1314
#include <cpr/cpr.h>

include/pgvector/pqxx.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
#include <limits>
1111
#include <ranges>
1212
#include <string_view>
13+
#include <unordered_map>
14+
#include <utility>
1315
#include <vector>
1416

1517
#include <pqxx/pqxx>
@@ -185,7 +187,7 @@ template<> struct string_traits<pgvector::SparseVector> {
185187
std::string_view sv{v.begin(), v.end()};
186188

187189
size_t ne = sv.find(":");
188-
if (ne == std::string::npos) {
190+
if (ne == std::string_view::npos) {
189191
throw conversion_error{"Malformed sparsevec literal"};
190192
}
191193

test/halfvec_test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include <span>
2+
#include <vector>
23

34
#include <pgvector/halfvec.hpp>
45

test/pqxx_test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include <optional>
33
#include <string>
44
#include <string_view>
5+
#include <unordered_map>
56
#include <vector>
67

78
#include <pqxx/pqxx>

test/sparsevec_test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include <span>
22
#include <unordered_map>
3+
#include <vector>
34

45
#include <pgvector/sparsevec.hpp>
56

test/vector_test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include <span>
2+
#include <vector>
23

34
#include <pgvector/vector.hpp>
45

0 commit comments

Comments
 (0)