File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ template <> struct string_traits<pgvector::Vector> {
37
37
38
38
// TODO don't copy string
39
39
std::vector<float > result;
40
- std::stringstream ss (std::string (text.substr (1 , text.size () - 2 )));
40
+ std::istringstream ss (std::string (text.substr (1 , text.size () - 2 )));
41
41
while (ss.good ()) {
42
42
std::string substr;
43
43
std::getline (ss, substr, ' ,' );
@@ -82,7 +82,7 @@ template <> struct string_traits<pgvector::HalfVector> {
82
82
83
83
// TODO don't copy string
84
84
std::vector<float > result;
85
- std::stringstream ss (std::string (text.substr (1 , text.size () - 2 )));
85
+ std::istringstream ss (std::string (text.substr (1 , text.size () - 2 )));
86
86
while (ss.good ()) {
87
87
std::string substr;
88
88
std::getline (ss, substr, ' ,' );
You can’t perform that action at this time.
0 commit comments