Re: [Boost-bugs] [Boost C++ Libraries] #8272: BOOST_REQUIRE_CLOSE fails to compile with boost::multiprecision::cpp_dec_float_100

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8272: BOOST_REQUIRE_CLOSE fails to compile with boost::multiprecision::cpp_dec_float_100
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-03-11 13:31:29


#8272: BOOST_REQUIRE_CLOSE fails to compile with
boost::multiprecision::cpp_dec_float_100
--------------------------------------------+-------------------------------
  Reporter: Ken Smith <kgsmith@…> | Owner: rogeeff
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: multiprecision
   Version: Boost 1.53.0 | Severity: Problem
Resolution: | Keywords: test multiprecision check_is_close is_close_to
--------------------------------------------+-------------------------------
Changes (by johnmaddock):

 * cc: pbristow@… (added)
  * owner: johnmaddock => rogeeff

Comment:

 Boost.Test knows nothing of expression template types internally and so
 can't cope with these. The fixes are reasonably easy, but it's up to
 Boost.Test's maintainer to decide whether to support this use case or not.
 One fix on your side is to cast arguments to Boost.Test macros to a
 multiprecision type that has expression template support turned off.

 Gennadiy, I'm attaching patches and a test case (which IMO belongs in the
 Boost.Test test suite if you choose to approve the patches), can you take
 a look?

 Also adding Paul Bristow in the loop, as I know he hit this one too.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8272#comment:1>
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 : 2017-02-16 18:50:12 UTC