Skip to content
Snippets Groups Projects
Commit c3ef1ea1 authored by Charles Villard's avatar Charles Villard
Browse files

fix: fmt: fix fmt

parent e7869ad3
No related branches found
No related tags found
No related merge requests found
Pipeline #60712 canceled
...@@ -117,7 +117,8 @@ if (PYBIND) ...@@ -117,7 +117,8 @@ if (PYBIND)
## ##
endif() endif()
target_link_libraries(${module_name} PUBLIC Threads::Threads fmt::fmt) target_link_libraries(${module_name} PRIVATE fmt::fmt)
target_link_libraries(${module_name} PUBLIC Threads::Threads)
target_compile_features(${module_name} PRIVATE cxx_std_14) target_compile_features(${module_name} PRIVATE cxx_std_14)
if (DOSANITIZE STREQUAL "ON") if (DOSANITIZE STREQUAL "ON")
......
...@@ -101,12 +101,12 @@ private: ...@@ -101,12 +101,12 @@ private:
template<> template<>
struct fmt::formatter<Aidge::Elts_t> { struct fmt::formatter<Aidge::Elts_t> {
template<typename ParseContext> template<typename ParseContext>
inline constexpr auto parse(ParseContext& ctx) { inline constexpr auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
return ctx.begin(); return ctx.begin();
} }
template<typename FormatContext> template<typename FormatContext>
inline auto format(Aidge::Elts_t const& elt, FormatContext& ctx) { inline auto format(const Aidge::Elts_t& elt, FormatContext& ctx) const {
return fmt::format_to(ctx.out(), "{}:{}", elt.data, elt.token); return fmt::format_to(ctx.out(), "{}:{}", elt.data, elt.token);
} }
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment