Skip to content

Commit

Permalink
Merge pull request #194 from elbeno/update-fmt
Browse files Browse the repository at this point in the history
⬆️ Update libfmt
  • Loading branch information
bdeane-intel authored Feb 19, 2025
2 parents e8530c2 + ea09c0a commit 9931860
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ else()
endif()

add_versioned_package("gh:boostorg/mp11#boost-1.83.0")
fmt_recipe(10.2.1)
fmt_recipe(11.1.3)
add_versioned_package("gh:intel/cpp-baremetal-concurrency#06e5901")

if(NOT DEFINED CMAKE_CXX_STANDARD)
Expand Down
13 changes: 4 additions & 9 deletions include/stdx/ct_format.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,12 @@
#include <string_view>
#include <utility>

template <std::size_t N>
struct fmt::formatter<stdx::ct_string<N>> : fmt::formatter<std::string_view> {
template <typename Ctx>
constexpr auto format(stdx::ct_string<N> const &s, Ctx &ctx) const {
return fmt::formatter<std::string_view>::format(std::string_view{s},
ctx);
}
};

namespace stdx {
inline namespace v1 {
template <std::size_t N> constexpr auto format_as(stdx::ct_string<N> const &s) {
return std::string_view{s};
}

template <typename Str, typename Args> struct format_result {
CONSTEVAL static auto
ct_string_convertible() -> std::bool_constant<Args::size() == 0>;
Expand Down

0 comments on commit 9931860

Please sign in to comment.