csv_utils - fix istringstream initialiser by using explicit iterators pair std::string ctor
This commit is contained in:
parent
4c0781dbe9
commit
cd5105785a
1 changed files with 1 additions and 1 deletions
|
@ -211,7 +211,7 @@ std::tuple<char, bool, char, char> autodect_csv_flavour(T & stream, std::size_t
|
||||||
|
|
||||||
if (has_newline)
|
if (has_newline)
|
||||||
{
|
{
|
||||||
std::istringstream ss(buffer.data());
|
std::istringstream ss(std::string(buffer.begin(), buffer.end()));
|
||||||
std::size_t num_columns = 0;
|
std::size_t num_columns = 0;
|
||||||
for (std::string line; csv_utils::getline_csv(ss, line, newline, quote) && !ss.eof(); )
|
for (std::string line; csv_utils::getline_csv(ss, line, newline, quote) && !ss.eof(); )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue