Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10082: implicit cpp_rational(double)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-05-31 08:06:54
#10082: implicit cpp_rational(double)
-------------------------------+----------------------------
Reporter: marc.glisse@⦠| Owner: johnmaddock
Type: Bugs | Status: new
Milestone: To Be Determined | Component: multiprecision
Version: Boost 1.55.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+----------------------------
Comment (by marc.glisse@â¦):
Argh, please don't base your design on dumb users. Using expression
templates in the first place will cause problems for dumb users (and even
not so dumb ones). And the 0.1 issue is in my opinion orthogonal to
implicit/explicit. The example as you wrote it already compiles (it uses
the explicit constructor), you want to write it:
{{{
cpp_rational r = 0.1;
}}}
if it is supposed to be an argument against making it implicit. But the
"problem" won't really become worse by making the constructor implicit.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10082#comment:2> 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:16 UTC