Skip to content

Commit

Permalink
Guard against MSVC only; clang-cl doesn't need to be there
Browse files Browse the repository at this point in the history
  • Loading branch information
jk-jeon committed Apr 2, 2024
1 parent cd7ebff commit 6d75a1d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/dragonbox/dragonbox.h
Original file line number Diff line number Diff line change
Expand Up @@ -1884,7 +1884,9 @@ namespace jkj {
using sign_policy = ignore_t;
static constexpr bool return_has_sign = false;

#ifdef _MSC_VER
#if defined(_MSC_VER) && !defined(__clang__)
// See
// https://developercommunity.visualstudio.com/t/Failure-to-optimize-intrinsics/10628226
template <class SignedSignificandBits, class UInt>
static constexpr decimal_fp<UInt, false, false>
handle_sign(SignedSignificandBits, decimal_fp<UInt, false, false> r) noexcept {
Expand Down

0 comments on commit 6d75a1d

Please sign in to comment.