Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12299: User-defined conversion operator from a wrapper class to a boost/multiprecision floating-point type does not compile.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-06-25 12:25:48
#12299: User-defined conversion operator from a wrapper class to a
boost/multiprecision floating-point type does not compile.
-------------------------------------------+----------------------------
Reporter: Ulrich Mutze <ulrichmutze@â¦> | Owner: johnmaddock
Type: Bugs | Status: new
Milestone: To Be Determined | Component: multiprecision
Version: Boost 1.61.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------------------+----------------------------
Comment (by johnmaddock):
>However, it should be noted that (at least on my system) R1 works as
intended for R defined as mpreal.
Not for me with mpreal 3.6.2: I get the same error as I see with
Boost.Multiprecision... ah wait this is with VC++, with GCC it compiles
OK. I suspect GCC accepts the code only because mpreal and it's
overloaded operators are non-templates. Not sure about that, as I still
don't really understand why this would work in the first place.... in any
case having thought about this some more I don't actually see any way to
fix this inside Multiprecision :(
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12299#comment:3> 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:20 UTC