[Boost-bugs] [Boost C++ Libraries] #13451: is_close_to function does not exist

Subject: [Boost-bugs] [Boost C++ Libraries] #13451: is_close_to function does not exist
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-02-18 17:14:56


#13451: is_close_to function does not exist
-----------------------------------------+---------------------
 Reporter: John Friesen <jhpfriesen@…> | Owner: (none)
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: None
  Version: Boost 1.66.0 | Severity: Problem
 Keywords: |
-----------------------------------------+---------------------
 The example code for boost::math::tools::brent_find_minima
 (Brent_minimise_example.cpp) calls the function is_close_to. This code
 results in an error (Visual Studio 15.5.5) because the compiler cannot
 find the function. Neither can I:
 [[BR]]
 [[BR]]
 #include <boost/test/floating_point_comparison.hpp>
 [[BR]]
 using boost::math::fpc::is_close_to;
 [[BR]]
 [[BR]]
 The following code seems to work:
 [[BR]]
 template<typename FPT>
 [[BR]]
 inline bool
 [[BR]]
 is_close_to(FPT left, FPT right, FPT tolerance)
 [[BR]]
 {
 [[BR]]
         return boost::math::fpc::close_at_tolerance<FPT>(tolerance) (left,
 right);
 [[BR]]
 }
 [[BR]]

-- 
Ticket URL: <https://svn.boost.org/trac10/ticket/13451>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2018-02-18 17:19:13 UTC