Skip to content
Snippets Groups Projects

Add check for fmt version in TensorUtils.hpp

Merged Iryna de Albuquerque Silva requested to merge fix_tensor_utils into dev

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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading