From b7b24bfd516b0d90ea8ae035cbd17c2f558ca4df Mon Sep 17 00:00:00 2001 From: Matt Borland Date: Tue, 28 Mar 2023 12:32:38 +0200 Subject: [PATCH] Add anonymous namespace for ODR violations --- include/boost/charconv/detail/floff.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/boost/charconv/detail/floff.hpp b/include/boost/charconv/detail/floff.hpp index a428c16..4c08e8c 100644 --- a/include/boost/charconv/detail/floff.hpp +++ b/include/boost/charconv/detail/floff.hpp @@ -906,7 +906,7 @@ namespace jkj { namespace floff { constexpr std::uint64_t additional_static_data_holder::fractional_part_rounding_thresholds64[]; #endif - } + } // Anonymous namespace struct compute_mul_result { std::uint64_t result; @@ -1419,6 +1419,7 @@ namespace jkj { namespace floff { } } + namespace { template struct main_cache_holder; @@ -1749,6 +1750,7 @@ namespace jkj { namespace floff { constexpr jkj::floff::detail::wuint::uint128 main_cache_holder::cache[]; #endif + } // Anonymous namespace // Compressed cache for double struct compressed_cache_detail { @@ -1900,6 +1902,7 @@ namespace jkj { namespace floff { } }; + namespace { struct extended_cache_long { static constexpr std::size_t max_cache_blocks = 3; static constexpr std::size_t cache_bits_unit = 64; @@ -2051,6 +2054,7 @@ namespace jkj { namespace floff { constexpr extended_cache_long::multiplier_index_info extended_cache_long::multiplier_index_info_table[]; #endif + } // Anonymous namespace struct extended_cache_compact { static constexpr std::size_t max_cache_blocks = 6;