Opened 5 weeks ago

#13451 new Bugs

is_close_to function does not exist

Reported by: John Friesen <jhpfriesen@…> Owned by:
Milestone: To Be Determined Component: None
Version: Boost 1.66.0 Severity: Problem
Keywords: Cc:


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:

#include <boost/test/floating_point_comparison.hpp>
using boost::math::fpc::is_close_to;

The following code seems to work:
template<typename FPT>
inline bool
is_close_to(FPT left, FPT right, FPT tolerance)

return boost::math::fpc::close_at_tolerance<FPT>(tolerance) (left, right);


Attachments (0)

Change History (0)

Modify Ticket

Change Properties
Set your email in Preferences
as new The ticket will remain with no owner.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.