Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9497: mpq_rational asserts when used in variant
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-03-11 17:11:16
#9497: mpq_rational asserts when used in variant
-------------------------------------------+----------------------------
Reporter: András Kucsma <r0maikx02b@â¦> | Owner: johnmaddock
Type: Bugs | Status: closed
Milestone: To Be Determined | Component: multiprecision
Version: Boost 1.55.0 | Severity: Problem
Resolution: fixed | Keywords:
-------------------------------------------+----------------------------
Changes (by johnmaddock):
* status: new => closed
* resolution: => fixed
Comment:
>Looks like gmp_rational calls only pure C methods. Can the default
constructor of gmp_rational be marked with noexcept?
Not really, as those methods perform memory allocation, and the allocator
used can be a user-supplied custom one (which throws). In any case, if
you're happy copying an already-moved-from-object and there's really no
alternative, then that's fine. Closing down.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9497#comment:8> 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:15 UTC