aboutsummaryrefslogtreecommitdiff
path: root/src/zencore
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2024-09-20 16:53:00 +0200
committerGitHub Enterprise <[email protected]>2024-09-20 16:53:00 +0200
commitc8189d26a2e1d57d1ce227b02796276337fba5ca (patch)
tree5b2d235a91a793878ab739d987f671fc8d6fe3f5 /src/zencore
parent5.5.8-pre0 (diff)
downloadzen-c8189d26a2e1d57d1ce227b02796276337fba5ca.tar.xz
zen-c8189d26a2e1d57d1ce227b02796276337fba5ca.zip
made fmt formatter format function const (#162)
this appears to be required as of fmt v11
Diffstat (limited to 'src/zencore')
-rw-r--r--src/zencore/include/zencore/fmtutils.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/zencore/include/zencore/fmtutils.h b/src/zencore/include/zencore/fmtutils.h
index 9c5bdae66..8482157fb 100644
--- a/src/zencore/include/zencore/fmtutils.h
+++ b/src/zencore/include/zencore/fmtutils.h
@@ -40,7 +40,7 @@ template<>
struct fmt::formatter<zen::IoHash> : formatter<string_view>
{
template<typename FormatContext>
- auto format(const zen::IoHash& Hash, FormatContext& ctx)
+ auto format(const zen::IoHash& Hash, FormatContext& ctx) const
{
zen::IoHash::String_t String;
Hash.ToHexString(String);
@@ -52,7 +52,7 @@ template<>
struct fmt::formatter<zen::Oid> : formatter<string_view>
{
template<typename FormatContext>
- auto format(const zen::Oid& Id, FormatContext& ctx)
+ auto format(const zen::Oid& Id, FormatContext& ctx) const
{
zen::StringBuilder<32> String;
Id.ToString(String);
@@ -64,7 +64,7 @@ template<>
struct fmt::formatter<zen::Guid> : formatter<string_view>
{
template<typename FormatContext>
- auto format(const zen::Guid& Id, FormatContext& ctx)
+ auto format(const zen::Guid& Id, FormatContext& ctx) const
{
zen::StringBuilder<48> String;
Id.ToString(String);
@@ -76,7 +76,7 @@ template<>
struct fmt::formatter<std::filesystem::path> : formatter<string_view>
{
template<typename FormatContext>
- auto format(const std::filesystem::path& Path, FormatContext& ctx)
+ auto format(const std::filesystem::path& Path, FormatContext& ctx) const
{
using namespace std::literals;