csv_utils - fix istringstream initialiser by using explicit iterators pair std::string ctor

This commit is contained in:
artemp 2016-02-18 11:35:14 +01:00
parent 4c0781dbe9
commit cd5105785a

View file

@ -211,7 +211,7 @@ std::tuple<char, bool, char, char> autodect_csv_flavour(T & stream, std::size_t
if (has_newline)
{
std::istringstream ss(buffer.data());
std::istringstream ss(std::string(buffer.begin(), buffer.end()));
std::size_t num_columns = 0;
for (std::string line; csv_utils::getline_csv(ss, line, newline, quote) && !ss.eof(); )
{