Re: [Boost-bugs] [Boost C++ Libraries] #13099: How about adding BOOST_CONSEXPR to functions in rational where appropriate

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #13099: How about adding BOOST_CONSEXPR to functions in rational where appropriate
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-06-27 03:56:36


#13099: How about adding BOOST_CONSEXPR to functions in rational where appropriate
-------------------------------+--------------------------------
  Reporter: ramey | Owner: dlwalker
      Type: Feature Requests | Status: new
 Milestone: To Be Determined | Component: rational
   Version: Boost 1.63.0 | Severity: Optimization
Resolution: | Keywords: rational constexpr
-------------------------------+--------------------------------
Changes (by ramey):

 * owner: johnmaddock => dlwalker

Comment:

 Hmmm - I looked at the code and it seems I over reacted. Many of the
 functions are constexpr. The particular one I was interested in isn't.
 This function is operator * (.. The way it's implemented in terms of *=
 inhibits it from being constexpr. Perhaps the implementation might be
 tweaked to over come this.

--
Ticket URL: <https://svn.boost.org/trac10/boost/ticket/13099#comment:1>
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-06-27 03:59:38 UTC