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

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7145: rational.hpp - Avoid repeated construction
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-08-20 11:30:44


#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
Resolution: | Keywords:
-----------------------------------------+----------------------

Comment (by dlwalker):

 When a class template's instantiation is hidden behind a `typedef`/type-
 alias, its template parameters are a pain to get. That's why it's
 customary for template classes to provide means to get its parameters
 within themselves. That means member type-aliases for type-based
 parameters and constants or static member functions for value-based
 parameters. (Maybe the new C++11 templated `using` can be used for
 template-based parameters?)

 Maybe I should go the other way; use `int_type` for member function
 definitions, and `IntType` only within non-member functions.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7145#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-02-16 18:50:13 UTC