Skip to content

Commit 1d89a44

Browse files
committed
Applied Tim-S fix yaml-cpp build with Visual Studio Code 2019 jbeder#1364 - https://github.com/jbeder/yaml-cpp/pull/1364/files
1 parent f74a6f3 commit 1d89a44

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/contrib/dragonbox.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,9 +937,16 @@ namespace jkj {
937937
return false;
938938
}
939939

940+
// https://github.com/jbeder/yaml-cpp/pull/1364/files
941+
template <template <std::size_t> class Info, std::int_least32_t min_exponent,
942+
std::int_least32_t max_exponent, std::size_t current_tier>
943+
constexpr bool is_in_range_v =
944+
min_exponent >= Info<current_tier>::min_exponent &&
945+
max_exponent <= Info<current_tier>::max_exponent;
946+
940947
template <template <stdr::size_t> class Info, stdr::int_least32_t min_exponent,
941948
stdr::int_least32_t max_exponent, stdr::size_t current_tier = 0,
942-
bool = is_in_range<Info, min_exponent, max_exponent, current_tier>(0)>
949+
bool = is_in_range_v<Info, min_exponent, max_exponent, current_tier> /* (0) */ >
943950
struct compute_impl;
944951

945952
template <template <stdr::size_t> class Info, stdr::int_least32_t min_exponent,

0 commit comments

Comments
 (0)