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

This commit is contained in:
Jeremy Rifkin 2024-09-12 21:06:12 -05:00
parent 4f94f20d41
commit 4e9f0da95f
No known key found for this signature in database
GPG Key ID: 19AA8270105E8EB4

View File

@ -17,6 +17,7 @@
// https://github.com/jeremy-rifkin/microfmt // https://github.com/jeremy-rifkin/microfmt
// Format: {[align][width][:[fill][base]]} # width: number or {} // Format: {[align][width][:[fill][base]]} # width: number or {}
namespace cpptrace {
namespace microfmt { namespace microfmt {
namespace detail { namespace detail {
inline std::uint64_t clz(std::uint64_t value) { inline std::uint64_t clz(std::uint64_t value) {
@ -301,5 +302,6 @@ namespace microfmt {
fwrite(str.data(), 1, str.size(), stream); fwrite(str.data(), 1, str.size(), stream);
} }
} }
}
#endif #endif