Commit 3ae0f34
committed
common: Include <fmt/format.h> for fmt::format in string.hpp
string.hpp calls fmt::format and fmt::vformat but only included
<fmt/core.h>. As of fmt 12, <fmt/core.h> was reduced to a shim and the
format/vformat entry points moved to <fmt/format.h>, so building
against a system fmt 12.x fails with "no member named 'format' in
namespace 'fmt'" in every translation unit that pulls in string.hpp.
Include <fmt/format.h> instead. It is a superset of the old core.h, so
this is backward compatible with older fmt releases while restoring the
build on fmt 12.
Signed-off-by: Razvan Cojocaru <razvan.cojocaru@openvpn.com>1 parent 2c889af commit 3ae0f34
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
0 commit comments