Skip to content

Commit 99fbb3c

Browse files
modernize formatting by updating fmt and spdlog (#490)
- update fmt to version 11.2.0 - update spdlog to version v1.15.3 - This enables use of modern formatting facilities like custom formatting for types Co-authored-by: Mathew Benson <mathew@benson.co.ke>
1 parent 45d57c9 commit 99fbb3c

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

ZEngine/ZEngine/Windows/Inputs/KeyCode.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
2+
#include <fmt/format.h>
23
#include <cstdint>
3-
#include <iostream>
44

55
namespace ZEngine::Windows::Inputs
66
{
@@ -138,9 +138,8 @@ namespace ZEngine::Windows::Inputs
138138

139139
} GlfwKey;
140140

141-
inline std::ostream& operator<<(std::ostream& stream, GlfwKeyCode f)
141+
inline auto format_as(GlfwKey f)
142142
{
143-
stream << static_cast<int32_t>(f);
144-
return stream;
143+
return fmt::underlying(f);
145144
}
146145
} // namespace ZEngine::Windows::Inputs

__externals/fmt

Submodule fmt updated 222 files

__externals/spdlog

Submodule spdlog updated 172 files

0 commit comments

Comments
 (0)