From 905e7b5cc242cc686a4426daa66b98ca14f0be4c Mon Sep 17 00:00:00 2001 From: "Timur A. Fatkhullin" Date: Wed, 3 Jun 2026 12:04:29 +0300 Subject: [PATCH] ... --- asibfm700_config.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/asibfm700_config.h b/asibfm700_config.h index c4a4e73..ab94d49 100644 --- a/asibfm700_config.h +++ b/asibfm700_config.h @@ -450,7 +450,7 @@ public: std::error_code ec{}; std::string output_buffer; - auto write_rec = [&output_buffer, &ec, this](this auto& self) { + auto write_rec = [&output_buffer, &ec, this](this auto& self) -> void { if constexpr (I < NUMBER_OF_RECORDS) { // add an empty string within records std::format_to(std::back_inserter(output_buffer), "{}", DEFAULT_RECORD_DELIMITER); @@ -466,6 +466,13 @@ public: }; write_rec(); + + // [&output_buffer, &ec, this](std::index_sequence) { + // ((std::format_to(std::back_inserter(output_buffer), "{}", DEFAULT_RECORD_DELIMITER), + // ec = formatRecord(output_buffer, DEFAULT_RECORD_DELIMITER, true)), + // ...); + // }(std::make_index_sequence()); + if (!ec) { std::ofstream fst(path, std::ios_base::trunc); if (!fst.is_open()) {