Skip to content

Commit

Permalink
Workaround for error when building with Boost 1.79
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffthemedio committed May 23, 2022
1 parent fc41d55 commit 5e4887f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions util/OptionValidators.h
Expand Up @@ -10,6 +10,15 @@
#include <string>
#include <vector>

#if BOOST_VERSION == 107900 && defined(_MSC_VER)
namespace boost::core {
// workaround for error in boost/lexical_cast/detail/inf_nan.hpp : error C2039: '_copysign': is not a member of 'boost::core'
inline float _copysign(float x, float y)
{ return std::copysignf(x, y); }
}
#endif



// these are needed by the StepValidator
namespace details {
Expand Down

0 comments on commit 5e4887f

Please sign in to comment.