A way to make your operator[] work is to implement it as follows:
template<typename T, int D0, int D1>
class matrix
{
public:
matrix() {};
T* operator[](int row) { return m[row]; }
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: Marc G Search: Search took 0.03 seconds.
Results 1 to 1 of 1
|
![]() Click Here to Expand Forum to Full Width |