[Boost-bugs] [Boost C++ Libraries] #7145: rational.hpp - Avoid repeated construction

Subject: [Boost-bugs] [Boost C++ Libraries] #7145: rational.hpp - Avoid repeated construction
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-07-18 13:38:55


#7145: rational.hpp - Avoid repeated construction
------------------------------------------------+---------------------------
 Reporter: Dan Searles <dansearles@…> | Owner: turkanis
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: rational
  Version: Boost 1.51.0 | Severity: Problem
 Keywords: |
------------------------------------------------+---------------------------
 In rational.hpp, two times 'IntType zero(0);' is used to
 "Avoid repeated construction" and two times 'int_type const zero( 0 );'
 is used. The two without the const may not be avoiding repeated
 construction. Since int_type is just a typedef from IntType, it
 might be clearer if all int_type were replaced with IntType and the
 typedef for int_type removed.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7145>
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:10 UTC