From 0397c7ebcf01165b149d10e47b3e513706f9f794 Mon Sep 17 00:00:00 2001 From: Daniel Parker Date: Thu, 23 Jan 2025 09:58:01 -0500 Subject: [PATCH] csv_encoder --- include/jsoncons_ext/csv/csv_encoder.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/jsoncons_ext/csv/csv_encoder.hpp b/include/jsoncons_ext/csv/csv_encoder.hpp index 298b94353..d8472d24d 100644 --- a/include/jsoncons_ext/csv/csv_encoder.hpp +++ b/include/jsoncons_ext/csv/csv_encoder.hpp @@ -170,9 +170,13 @@ class basic_csv_encoder final : public basic_json_visitor neginf_to_str_(options.neginf_to_str()), alloc_(alloc), fp_(options.float_format(), options.precision()), + column_names_(alloc), + column_paths_(alloc), + column_path_name_map_(alloc), + column_path_value_map_(alloc), + column_path_column_map_(alloc), buffer_(alloc), value_buffer_(alloc), - column_path_column_map_(alloc), column_it_(column_path_column_map_.end()) { if (has_column_mapping_)