Add check for fmt version in TensorUtils.hpp
Compare changes
@@ -13,7 +13,12 @@
@@ -13,7 +13,12 @@
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).
aidge_core/include/aidge/utils/TensorUtils.hpp
, added if-block to check fmt version;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
Copyright © Eclipse Foundation, Inc. All Rights Reserved. Privacy Policy | Terms of Use | Copyright Agent