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.

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-28 10:00:45


#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 anonymous):

 Replying to [comment:3 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 :(

 I agree. If it is a problem (I'm convinced that it is one) it is one for
 GCC. So I sent a bugreport to them where it got a Ticket 71658. When the
 matter is clarified there, I probably will come back to
 boost/multiprecision. Meanwhile I don't expect action from your side.
 Thanks a lot so far!

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12299#comment:4>
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