Skip to content

Commit 9931860

Browse files
authored
Merge pull request #194 from elbeno/update-fmt
⬆️ Update libfmt
2 parents e8530c2 + ea09c0a commit 9931860

2 files changed

Lines changed: 5 additions & 10 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ else()
1515
endif()
1616

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

2121
if(NOT DEFINED CMAKE_CXX_STANDARD)

include/stdx/ct_format.hpp

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,12 @@
1919
#include <string_view>
2020
#include <utility>
2121

22-
template <std::size_t N>
23-
struct fmt::formatter<stdx::ct_string<N>> : fmt::formatter<std::string_view> {
24-
template <typename Ctx>
25-
constexpr auto format(stdx::ct_string<N> const &s, Ctx &ctx) const {
26-
return fmt::formatter<std::string_view>::format(std::string_view{s},
27-
ctx);
28-
}
29-
};
30-
3122
namespace stdx {
3223
inline namespace v1 {
24+
template <std::size_t N> constexpr auto format_as(stdx::ct_string<N> const &s) {
25+
return std::string_view{s};
26+
}
27+
3328
template <typename Str, typename Args> struct format_result {
3429
CONSTEVAL static auto
3530
ct_string_convertible() -> std::bool_constant<Args::size() == 0>;

0 commit comments

Comments
 (0)