This commit is contained in:
2026-06-04 16:27:25 +03:00
parent 905e7b5cc2
commit d39a22fd82
2 changed files with 11 additions and 0 deletions

View File

@@ -5,6 +5,11 @@ project(ASIBFM700 LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# define explicitely GCC version to prevent redefintion by CLANG
# if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
# add_compile_options(-fgnuc-version=${CMAKE_CXX_COMPILER_VERSION})
# endif()
# for ccls
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

View File

@@ -450,7 +450,13 @@ public:
std::error_code ec{};
std::string output_buffer;
// #ifdef __GNUG__
// #if __GNUG__ < 16
// auto write_rec = [&output_buffer, &ec, obj_ptr = this]<size_t I = 0>(this auto& self) -> void {
// #else
auto write_rec = [&output_buffer, &ec, this]<size_t I = 0>(this auto& self) -> void {
// #endif
// #endif
if constexpr (I < NUMBER_OF_RECORDS) {
// add an empty string within records
std::format_to(std::back_inserter(output_buffer), "{}", DEFAULT_RECORD_DELIMITER);