Add check for fmt version in TensorUtils.hpp
Context
Added a version check for the fmt
library to include the appropriate header file: fmt/core.h
for versions older than 10.0.0 and fmt/base.h
for versions 10.0.0 and later.
It solves issue #255 (closed).
Modified files
-
aidge_core/include/aidge/utils/TensorUtils.hpp
, added if-block to check fmt version;
Explanation
The fmt
library defines FMT_VERSION
as an integer in the format MmmPP
(Major, Minor, Patch).
For example:
-
FMT_VERSION 90100
→ fmt 9.1.0 -
FMT_VERSION 100200
→ fmt 10.2.0
Merge request reports
Activity
Filter activity
changed milestone to %aidge v0.6.0
added Fix 🔥🔥 label
requested review from @cmoineau
assigned to @idealbuq
Please register or sign in to reply