From 4e9f0da95fa930fd15c5361225dae117ec715421 Mon Sep 17 00:00:00 2001 From: Jeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com> Date: Thu, 12 Sep 2024 21:06:12 -0500 Subject: [PATCH] Nest microfmt in the cpptrace namespace due to conditionally-enabled C++17 behavior causing ODR issues, related to https://github.com/jeremy-rifkin/libassert/issues/103 --- src/utils/microfmt.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils/microfmt.hpp b/src/utils/microfmt.hpp index cc8d9b1..66bb34f 100644 --- a/src/utils/microfmt.hpp +++ b/src/utils/microfmt.hpp @@ -17,6 +17,7 @@ // https://github.com/jeremy-rifkin/microfmt // Format: {[align][width][:[fill][base]]} # width: number or {} +namespace cpptrace { namespace microfmt { namespace detail { inline std::uint64_t clz(std::uint64_t value) { @@ -301,5 +302,6 @@ namespace microfmt { fwrite(str.data(), 1, str.size(), stream); } } +} #endif