Opened 14 years ago

Closed 14 years ago

#2227 closed Patches (fixed)

[Units] Missing partial specializations of the Boost.Lambda return type traits for dimensionless quantities

Reported by: Torsten Maehne <Torsten.Maehne@…> Owned by: Matthias Schabel
Milestone: Boost 1.37.0 Component: units
Version: Boost Development Trunk Severity: Problem
Keywords: units, lambda Cc: watanabesj@…, boost@…

Description

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

Attachments (1)

boost_units_lambda_dimensionless_quantity.patch (4.2 KB ) - added by Torsten Maehne <Torsten.Maehne@…> 14 years ago.
Patch for boost/units/lambda.hpp and libs/units/test/test_lambda.cpp

Download all attachments as: .zip

Change History (2)

by Torsten Maehne <Torsten.Maehne@…>, 14 years ago

Patch for boost/units/lambda.hpp and libs/units/test/test_lambda.cpp

comment:1 by Matthias Schabel, 14 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.