From: <no...@so...> - 2002-10-10 22:01:43
|
Bugs item #621594, was opened at 2002-10-10 22:01 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=437247&aid=621594&group_id=43735 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: max rheiner (maxoh) Assigned to: Nobody/Anonymous (nobody) Summary: compile error with vc6 / matrix.h Initial Comment: i've got problems to compile matrix.h with visual studio v6, i use the gmtl version 0.1.9. the compiler prints out this error: matrix.h(105) : error C2891: 'ROWS' : cannot take the address of a template parameter matrix.h(105) : error C2891: 'COLS' : cannot take the address of a template parameter ... line 105, matrix.h: for (unsigned int x = 0; x < Math::Min( COLS, ROWS ); ++x) line 424, math.h inline T Min( const T& x, const T& y ) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ i think the vc6 compiler can't solve the problem with the 'const T&' in Min and the template parameter. so i changed the line 105 in matrix.h to use the enums: for (unsigned int x = 0; x < Math::Min( Cols, Rows); ++x) now it works. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=437247&aid=621594&group_id=43735 |