Boost C++ Libraries: Ticket #13451: is_close_to function does not exist https://svn.boost.org/trac10/ticket/13451 <p> 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 &lt;boost/test/floating_point_comparison.hpp&gt; <br /> using boost::math::fpc::is_close_to; <br /> <br /> The following code seems to work: <br /> template&lt;typename FPT&gt; <br /> inline bool <br /> is_close_to(FPT left, FPT right, FPT tolerance) <br /> { <br /> </p> <blockquote> <p> return boost::math::fpc::close_at_tolerance&lt;FPT&gt;(tolerance) (left, right); </p> </blockquote> <p> <br /> } <br /> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13451 Trac 1.4.3 John Maddock Thu, 10 May 2018 12:10:57 GMT component changed; owner set https://svn.boost.org/trac10/ticket/13451#comment:1 https://svn.boost.org/trac10/ticket/13451#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Paul A. Bristow</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">math</span> </li> </ul> <p> Paul this seems to be your code. I also note that the offending example hasn't been added to the Jamfile for the examples, otherwise this would have been detected during the CI builds. </p> Ticket Paul A. Bristow Fri, 11 May 2018 13:59:08 GMT <link>https://svn.boost.org/trac10/ticket/13451#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13451#comment:2</guid> <description> <p> Thanks for reporting this. Clearly a mistake. Your fix sounds plausible, but I will check this out fully in due course. And add the the jamfile so that any mistakes would be found before the users do :-( </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Paul A. Bristow</dc:creator> <pubDate>Wed, 30 May 2018 16:26:35 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/13451#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13451#comment:3</guid> <description> <p> Corrected and hopefully improved this example, now checking if expected small near zero before checking if close. </p> <p> o github.com:boostorg/math.git </p> <blockquote> <p> bf57b10fe..0fe646388 develop -&gt; develop </p> </blockquote> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Tue, 31 Jul 2018 17:59:49 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/13451#comment:4 https://svn.boost.org/trac10/ticket/13451#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket