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_)