mirror of
https://github.com/boostorg/serialization.git
synced 2026-02-22 15:42:30 +00:00
merge trunk to release
[SVN r86727]
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include <cstdlib> // rand()
|
||||
#include <cmath> // fabs()
|
||||
#include <cstddef> // size_t
|
||||
#include <boost/math/special_functions/next.hpp>
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#if defined(BOOST_NO_STDC_NAMESPACE)
|
||||
@@ -148,13 +149,9 @@ bool A::operator==(const A &rhs) const
|
||||
return false;
|
||||
if(v != rhs.v)
|
||||
return false;
|
||||
if(w == 0 && std::fabs(rhs.w) > std::numeric_limits<float>::epsilon())
|
||||
if(std::abs( boost::math::float_distance(w, rhs.w)) > 1)
|
||||
return false;
|
||||
if(std::fabs(rhs.w/w - 1.0) > std::numeric_limits<float>::epsilon())
|
||||
return false;
|
||||
if(x == 0 && std::fabs(rhs.x - x) > std::numeric_limits<float>::epsilon())
|
||||
return false;
|
||||
if(std::fabs(rhs.x/x - 1.0) > std::numeric_limits<float>::epsilon())
|
||||
if(std::abs( boost::math::float_distance(x, rhs.x)) > 1)
|
||||
return false;
|
||||
if(0 != y.compare(rhs.y))
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user