Update of /cvsroot/quantlibaddin/QuantLibAddin/qlo
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv7998/qlo
Modified Files:
conversions.cpp conversions.hpp
Log Message:
implicit conversion of QL types which are typedef to double e.g. Rate
Index: conversions.cpp
===================================================================
RCS file: /cvsroot/quantlibaddin/QuantLibAddin/qlo/conversions.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** conversions.cpp 4 Jul 2006 10:43:25 -0000 1.5
--- conversions.cpp 4 Jul 2006 12:07:48 -0000 1.6
***************
*** 66,69 ****
--- 66,73 ----
}
+ long libraryToScalar(const long &l) {
+ return l;
+ }
+
}
Index: conversions.hpp
===================================================================
RCS file: /cvsroot/quantlibaddin/QuantLibAddin/qlo/conversions.hpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** conversions.hpp 4 Jul 2006 10:43:25 -0000 1.7
--- conversions.hpp 4 Jul 2006 12:07:48 -0000 1.8
***************
*** 137,143 ****
std::vector<std::string> libraryToVector(const std::vector<QuantLib::Period>&);
! // FIXME this function is a temporary workaround for
// shortcoming in autogenerated source code
double libraryToScalar(const double&);
}
--- 137,144 ----
std::vector<std::string> libraryToVector(const std::vector<QuantLib::Period>&);
! // FIXME these functions are a temporary workaround for
// shortcoming in autogenerated source code
double libraryToScalar(const double&);
+ long libraryToScalar(const long&);
}
|