Update of /cvsroot/boost-sandbox/boost-sandbox/boost/units
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27305
Modified Files:
conversion.hpp
Log Message:
conversion_factor will give wrong results for irregular conversions
Index: conversion.hpp
===================================================================
RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/units/conversion.hpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- conversion.hpp 5 Apr 2007 21:55:20 -0000 1.4
+++ conversion.hpp 5 Apr 2007 22:42:01 -0000 1.5
@@ -149,6 +149,7 @@
Y
conversion_factor(const FromUnit&,const ToUnit&)
{
+ // dangerous if conversion is not regular...don't know how to deal with this yet
return quantity<ToUnit,Y>(Y(1)*FromUnit()).value();
};
|