Skip to content

Commit 3be0c21

Browse files
committed
fix(r3bsource/base/utils):Fix compilation problem in ubuntu24.04 and C++20/23
Minor change
1 parent f6e9931 commit 3be0c21

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

r3bsource/base/utils/R3BUcesbStructInfo.cxx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
******************************************************************************/
1313

1414
#include "R3BUcesbStructInfo.h"
15+
#include "R3BException.h"
16+
#include "R3BLogger.h"
1517
#include "R3BUcesbDecl.h"
16-
#include <R3BException.h>
17-
#include <R3BLogger.h>
1818
#include <R3BUcesbSource2.h>
1919

2020
namespace R3B
@@ -40,12 +40,13 @@ namespace R3B
4040
// no reader requries this item or reader accepts extra flag
4141
return true;
4242
}
43+
/* Error in C++20/23: call of overloaded ‘format_to(fmt::v10::basic_format_context<fmt::v10::appender,
44+
char>::iterator, const char [3], std::string)’ is ambiguous R3BLOG(error, fmt::format("Failed to map the item
45+
{} required from {} due to the map flag: {}", item->_var_name, required_reader->GetName(), map_flag));*/
4346

4447
R3BLOG(error,
45-
fmt::format("Failed to map the item {} required from {} due to the map flag: {}",
46-
item->_var_name,
47-
required_reader->GetName(),
48-
map_flag));
48+
"Failed to map the item " << item->_var_name << " required from " << required_reader->GetName()
49+
<< " due to the map flag: " << map_flag);
4950
return false;
5051
}
5152

0 commit comments

Comments
 (0)