diff --git a/CMakeLists.txt b/CMakeLists.txt index fce22fd..2c9ba26 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/asibfm700_config.h b/asibfm700_config.h index ab94d49..9c1f3bd 100644 --- a/asibfm700_config.h +++ b/asibfm700_config.h @@ -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](this auto& self) -> void { + // #else auto write_rec = [&output_buffer, &ec, this](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);