Skip to content
Prev Previous commit
Next Next commit
Fix reverse issue with MSVC
  • Loading branch information
mborland committed Jan 24, 2023
commit 0db751c733180449036cbb2a40ac2c26b63dd242
3 changes: 2 additions & 1 deletion include/boost/math/special_functions/prime.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1193,7 +1193,8 @@ namespace boost{ namespace math{
};

// ODR issues were fixed in C++17 where static constexpr members are now implicity inlined
#if !(defined(__cpp_inline_variables) && __cpp_inline_variables >= 201606L)
// MSVC doesn't like this workaround but has no linker issues to start with
#if !(defined(__cpp_inline_variables) && __cpp_inline_variables >= 201606L) && !defined(_MSVC_LANG)
constexpr unsigned char a1_helper::a1[];
constexpr std::uint16_t a2_helper::a2[];
constexpr std::uint16_t a3_helper::a3[];
Expand Down