File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ namespace csv {
1212 * @snippet tests/test_read_csv.cpp Parse Example
1313 */
1414 CSV_INLINE CSVReader parse (csv::string_view in, CSVFormat format) {
15- std::stringstream stream (in.data ());
15+ std::stringstream stream (std::string ( in.data (), in. length () ));
1616 return CSVReader (stream, format);
1717 }
1818
Original file line number Diff line number Diff line change @@ -8515,7 +8515,7 @@ namespace csv {
85158515 * @snippet tests/test_read_csv.cpp Parse Example
85168516 */
85178517 CSV_INLINE CSVReader parse (csv::string_view in, CSVFormat format) {
8518- std::stringstream stream (in.data ());
8518+ std::stringstream stream (std::string ( in.data (), in. length () ));
85198519 return CSVReader (stream, format);
85208520 }
85218521
Original file line number Diff line number Diff line change @@ -8515,7 +8515,7 @@ namespace csv {
85158515 * @snippet tests/test_read_csv.cpp Parse Example
85168516 */
85178517 CSV_INLINE CSVReader parse (csv::string_view in, CSVFormat format) {
8518- std::stringstream stream (in.data ());
8518+ std::stringstream stream (std::string ( in.data (), in. length () ));
85198519 return CSVReader (stream, format);
85208520 }
85218521
You can’t perform that action at this time.
0 commit comments