Skip to content

Commit e8a69fe

Browse files
Merge pull request #556 from ami-iit/fix/fmt9
Fix the compatibility with fmt v9.0.0
2 parents 511fcf5 + 1328bb7 commit e8a69fe

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ jobs:
130130
uses: actions/cache@v3
131131
with:
132132
path: ${{ github.workspace }}/install/deps
133-
key: source-deps-${{ runner.os }}-os-${{ matrix.os }}-build-type-${{ matrix.build_type }}-vcpkg-robotology-${{ env.vcpkg_robotology_TAG }}-ycm-${{ env.YCM_TAG }}-yarp-${{ env.YARP_TAG }}-iDynTree-${{ env.iDynTree_TAG }}-catch2-${{ env.Catch2_TAG }}-qhull-${{ env.Qhull_TAG }}-casADi-${{ env.CasADi_TAG }}-manif-${{ env.manif_TAG }}-matioCpp-${{ env.matioCpp_TAG }}-LieGroupControllers-${{ env.LieGroupControllers_TAG }}-osqp-${{ env.osqp_TAG }}-osqp-eigen-${{ env.OsqpEigen_TAG }}-tomlplusplus-${{ env.tomlplusplus_TAG }}-unicycle-${{ env.UnicyclePlanner_TAG }}-icub-models-${{ env.icub_models_TAG }}-robometry-${{ env.telemetry_TAG }}
133+
key: blf-source-deps-${{ runner.os }}-os-${{ matrix.os }}-build-type-${{ matrix.build_type }}-vcpkg-robotology-${{ env.vcpkg_robotology_TAG }}-ycm-${{ env.YCM_TAG }}-yarp-${{ env.YARP_TAG }}-iDynTree-${{ env.iDynTree_TAG }}-catch2-${{ env.Catch2_TAG }}-qhull-${{ env.Qhull_TAG }}-casADi-${{ env.CasADi_TAG }}-manif-${{ env.manif_TAG }}-matioCpp-${{ env.matioCpp_TAG }}-LieGroupControllers-${{ env.LieGroupControllers_TAG }}-osqp-${{ env.osqp_TAG }}-osqp-eigen-${{ env.OsqpEigen_TAG }}-tomlplusplus-${{ env.tomlplusplus_TAG }}-unicycle-${{ env.UnicyclePlanner_TAG }}-icub-models-${{ env.icub_models_TAG }}-robometry-${{ env.telemetry_TAG }}
134134

135135

136136
- name: Source-based Dependencies [Windows]

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ All notable changes to this project are documented in this file.
66
### Changed
77
### Fix
88
- Fix the dependency required to compile the YarpRobotLogger device (https://github.com/ami-iit/bipedal-locomotion-framework/pull/554)
9+
- Fix the compatibility with fmt v9.0.0 (https://github.com/ami-iit/bipedal-locomotion-framework/pull/556)
910

1011
## [0.8.0] - 2022-07-29
1112
### Added

src/TextLogging/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ add_bipedal_locomotion_library(
88
include/BipedalLocomotion/TextLogging/LoggerBuilder.h
99
include/BipedalLocomotion/TextLogging/DefaultLogger.h
1010
SOURCES src/Logger.cpp src/LoggerBuilder.cpp src/DefaultLogger.cpp
11-
PUBLIC_LINK_LIBRARIES spdlog::spdlog
11+
PUBLIC_LINK_LIBRARIES spdlog::spdlog Eigen3::Eigen
1212
SUBDIRECTORIES YarpImplementation)

src/TextLogging/include/BipedalLocomotion/TextLogging/Logger.h

+13
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,19 @@
1414
#include <spdlog/spdlog.h>
1515
#include <type_traits>
1616

17+
// This is required only for FMT > v9.0.0
18+
#if (defined(FMT_VERSION) && FMT_VERSION > 90000)
19+
#include <Eigen/Dense>
20+
template <typename _Derived>
21+
struct fmt::formatter<Eigen::DenseBase<_Derived>> : ostream_formatter
22+
{
23+
};
24+
template <typename _Derived>
25+
struct fmt::formatter<Eigen::Transpose<_Derived>> : ostream_formatter
26+
{
27+
};
28+
#endif
29+
1730
namespace BipedalLocomotion
1831
{
1932
namespace TextLogging

0 commit comments

Comments
 (0)