Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5724: "0 + 0" and "0 - 0" lead to a compile time error
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-08-19 15:43:39
#5724: "0 + 0" and "0 - 0" lead to a compile time error
------------------------------------------------+---------------------------
Reporter: iorate <iorate_stage@â¦> | Owner: viboes
Type: Bugs | Status: closed
Milestone: To Be Determined | Component: ratio
Version: Boost 1.47.0 | Severity: Problem
Resolution: fixed | Keywords:
------------------------------------------------+---------------------------
Comment (by anonymous):
I have added two partial specialization that solve the issue.
template <class R>
struct ratio_add<R, ratio<0> >
{
typedef R type;
};
template <class R>
struct ratio_subtract<R, ratio<0>>
{
typedef R type;
};
to the file boost/ratio/detail/overflow_helpers.hpp.
Sorry for the late replay. Thanks for catching this.
I have committed this and two test on trunk:
Committed revision 73918.
Committed revision 73919.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5724#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:07 UTC