aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/proxy/tcpproxy.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2026-03-20 09:16:26 +0100
committerStefan Boberg <[email protected]>2026-03-20 09:16:26 +0100
commit2aeddc7f596bf0c2756e8689440157338981fd73 (patch)
tree5cb07b2433815790243defe50270353bdbd6df08 /src/zenserver/proxy/tcpproxy.cpp
parentadd missing HTTP response codes (diff)
downloadzen-2aeddc7f596bf0c2756e8689440157338981fd73.tar.xz
zen-2aeddc7f596bf0c2756e8689440157338981fd73.zip
Add generic fmt::formatter for types with free ToString functions
Add a HasFreeToString concept that detects types with a free ToString(T) function returning a string-like type, and a corresponding fmt::formatter partial specialization. This eliminates the need for int() casts or explicit ToString() calls when formatting enums like HttpResponseCode, SessionState, etc. Convert compute-tests.cpp to use the new formatter directly instead of int() casts for HTTP response codes.
Diffstat (limited to 'src/zenserver/proxy/tcpproxy.cpp')
0 files changed, 0 insertions, 0 deletions