|
From: SourceForge.net <no...@so...> - 2009-02-13 20:38:56
|
Bugs item #1151637, was opened at 2005-02-25 04:00 Message generated for change (Comment added) made by patrickh You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=437247&aid=1151637&group_id=43735 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: GMTL Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: trigras (trigras) >Assigned to: Patrick Hartling (patrickh) Summary: some operator* tweaking Initial Comment: there is a bunch of operator* maybe they can be replaced with somethink like: template <typename T, typename DATA_TYPE, unsigned ROWS, unsigned COLS> inline T operator*( const Matrix<DATA_TYPE, ROWS, COLS>& matrix, const T& in) { T temporary; return xform( temporary, matrix, in); } or even: template <typename T, typename M> inline T operator*( const M& matrix, const T& in ) { T temporary; return xform( temporary, matrix, in ); } ---------------------------------------------------------------------- >Comment By: Patrick Hartling (patrickh) Date: 2009-02-13 14:38 Message: I think that this is worth pursuing, but it will not be as simple as what you have proposed. The issue is that there are overloads of operator* where a fundamental type is passed as an argument (such as scalar multiplication of a vector). Perhaps the solution is to make gmtl::xform() more general first so that all operator* uses end up getting handed off to an overload of gmtl::xform(). That is the first thing that comes to mind anyway. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=437247&aid=1151637&group_id=43735 |