warning: severe bug in RationalPower<m, n>
Markus Werle <[email protected]> Wed, 28 May 2003 10:00:07 +0200
| Newsgroups | gmane.comp.lib.daixtrose.bugs |
|---|---|
| Message-ID | <[email protected]> |
Hi!
This is a warning message for daixtrose-0.0.1.
I encountered a severe bug in DefaultOps.h which yields
the wrong result when the default Apply member function is used.
The corrected code should read
template<int m, int n>
struct RationalPower
{
public:
template <class ARG, class ReturnType>
static inline
ReturnType
Apply(const ARG& arg, const Hint<ReturnType>& Dummy)
{
return pow(arg, static_cast<double>(m)/static_cast<double>(n));
}
};
This bug has been fixed in the cvs repository.
best regards,
Markus
-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge