[Boost-bugs] [Boost C++ Libraries] #2227: [Units] Missing partial specializations of the Boost.Lambda return type traits for dimensionless quantities

Subject: [Boost-bugs] [Boost C++ Libraries] #2227: [Units] Missing partial specializations of the Boost.Lambda return type traits for dimensionless quantities
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-08-19 14:26:27


#2227: [Units] Missing partial specializations of the Boost.Lambda return type
traits for dimensionless quantities
----------------------------------------------------+-----------------------
 Reporter: Torsten Maehne <Torsten.Maehne_at_[hidden]> | Owner: matthiasschabel
     Type: Patches | Status: new
Milestone: Boost 1.37.0 | Component: units
  Version: Boost Development Trunk | Severity: Problem
 Keywords: units, lambda |
----------------------------------------------------+-----------------------
 Hello,

 I discovered some missing partial specializations of the Boost.Lambda
 return type traits for dimensionless quantities in the
 <boost/units/lambda.hpp> header, namely:

 * quantity<dimensionless, X> + Y

 * X + quantity<dimensionless, Y>

 * quantity<dimensionless, X> - Y

 * X - quantity<dimensionless, Y>

 The attached patch adds the necessary specializations to the
 <boost/units/lambda.hpp> header and adds corresponding checks to
 <libs/units/test/test_lambda.cpp>.

 Best regards,

 Torsten Maehne

-- 
Ticket URL: <http://svn.boost.org/trac/boost/ticket/2227>
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:49:58 UTC