File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
include/boost/decimal/detail Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -208,17 +208,17 @@ static_assert(sizeof(emulated_256_pow10) == sizeof(boost::decimal::detail::uint2
208208
209209} // namespace impl
210210
211+ #if defined(__GNUC__) && __GNUC__ >= 7
212+ # pragma GCC diagnostic push
213+ # pragma GCC diagnostic ignored "-Warray-bounds"
214+ #endif
215+
211216template <typename T>
212217constexpr auto pow10 (T n) noexcept -> T
213218{
214219 return static_cast <T>(impl::powers_of_10[static_cast <std::size_t >(n)]);
215220}
216221
217- #if defined(__GNUC__) && __GNUC__ >= 7
218- # pragma GCC diagnostic push
219- # pragma GCC diagnostic ignored "-Warray-bounds"
220- #endif
221-
222222template <>
223223constexpr auto pow10 (const boost::int128::uint128_t n) noexcept -> boost::int128::uint128_t
224224{
You can’t perform that action at this time.
0 commit comments