mirror of https://github.com/microsoft/vcpkg.git
50 lines
2.7 KiB
Diff
50 lines
2.7 KiB
Diff
From 5bb17bd05bb9dcb845d3dde0526df07b2df50101 Mon Sep 17 00:00:00 2001
|
|
From: Simon Gene Gottlieb <simon@gottliebtfreitag.de>
|
|
Date: Mon, 16 Mar 2026 23:20:31 +0100
|
|
Subject: [PATCH] fix: accepted by vs16.11
|
|
|
|
---
|
|
src/contrib/dragonbox.h | 18 +++++++++++-------
|
|
1 file changed, 11 insertions(+), 7 deletions(-)
|
|
|
|
diff --git a/src/contrib/dragonbox.h b/src/contrib/dragonbox.h
|
|
index de5a79f11..6160e5fcd 100644
|
|
--- a/src/contrib/dragonbox.h
|
|
+++ b/src/contrib/dragonbox.h
|
|
@@ -920,16 +920,20 @@ namespace jkj {
|
|
#endif
|
|
}
|
|
|
|
- template <template <stdr::size_t> class Info, stdr::int_least32_t min_exponent,
|
|
- stdr::int_least32_t max_exponent, stdr::size_t current_tier,
|
|
- stdr::int_least32_t supported_min_exponent = Info<current_tier>::min_exponent,
|
|
- stdr::int_least32_t supported_max_exponent = Info<current_tier>::max_exponent>
|
|
+ template <stdr::int_least32_t min_exponent,
|
|
+ stdr::int_least32_t max_exponent,
|
|
+ stdr::int_least32_t supported_min_exponent,
|
|
+ stdr::int_least32_t supported_max_exponent
|
|
+ >
|
|
constexpr bool is_in_range(int) noexcept {
|
|
return min_exponent >= supported_min_exponent &&
|
|
max_exponent <= supported_max_exponent;
|
|
}
|
|
- template <template <stdr::size_t> class Info, stdr::int_least32_t min_exponent,
|
|
- stdr::int_least32_t max_exponent, stdr::size_t current_tier>
|
|
+ template <stdr::int_least32_t min_exponent,
|
|
+ stdr::int_least32_t max_exponent,
|
|
+ stdr::int_least32_t supported_min_exponent,
|
|
+ stdr::int_least32_t supported_max_exponent
|
|
+ >
|
|
constexpr bool is_in_range(...) noexcept {
|
|
// Supposed to be always false, but formally dependent on the template parameters.
|
|
static_assert(min_exponent > max_exponent,
|
|
@@ -939,7 +943,7 @@ namespace jkj {
|
|
|
|
template <template <stdr::size_t> class Info, stdr::int_least32_t min_exponent,
|
|
stdr::int_least32_t max_exponent, stdr::size_t current_tier = 0,
|
|
- bool = is_in_range<Info, min_exponent, max_exponent, current_tier>(0)>
|
|
+ bool = is_in_range<min_exponent, max_exponent, Info<current_tier>::min_exponent, Info<current_tier>::max_exponent>(0)>
|
|
struct compute_impl;
|
|
|
|
template <template <stdr::size_t> class Info, stdr::int_least32_t min_exponent,
|