From cd5105785ab2558b2206c73893a072b13d4c9c54 Mon Sep 17 00:00:00 2001 From: artemp Date: Thu, 18 Feb 2016 11:35:14 +0100 Subject: [PATCH] csv_utils - fix istringstream initialiser by using explicit iterators pair std::string ctor --- plugins/input/csv/csv_utils.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/input/csv/csv_utils.hpp b/plugins/input/csv/csv_utils.hpp index 9e1bb6901..c53623b7d 100644 --- a/plugins/input/csv/csv_utils.hpp +++ b/plugins/input/csv/csv_utils.hpp @@ -211,7 +211,7 @@ std::tuple 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(); ) {