Skip to content

Commit

Permalink
[Core] Fix format for std::byte
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthapz committed Jun 15, 2024
1 parent 6294329 commit 88846a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/stormkit/Core/String/Format.mpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ namespace std {
template<class FormatContext>
auto formatter<std::byte, CharT>::format(std::byte data, FormatContext& ctx) const
-> decltype(ctx.out()) {
return formatter<int, CharT>::format(stormkit::core::as<int>(data), ctx);
return formatter<int, CharT>::format(static_cast<int>(data), ctx);
}

/////////////////////////////////////
Expand Down

0 comments on commit 88846a8

Please sign in to comment.