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> {
3737
3838 // TODO don't copy string
3939 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 )));
4141 while (ss.good ()) {
4242 std::string substr;
4343 std::getline (ss, substr, ' ,' );
@@ -82,7 +82,7 @@ template <> struct string_traits<pgvector::HalfVector> {
8282
8383 // TODO don't copy string
8484 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 )));
8686 while (ss.good ()) {
8787 std::string substr;
8888 std::getline (ss, substr, ' ,' );
You can’t perform that action at this time.
0 commit comments