...
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user