Re: mtl-devel digest, Vol 1 #209 - 1 msg
Wayne Crawford <[email protected]>
| Newsgroups | gmane.comp.lib.mtl.devel |
|---|---|
| Message-ID | <a05111b13ba3b75860684@[134.157.128.213]> |
I'm replying to my own message! After a lot of digging around, I
"solved" both problems with what are probably horrible kludges.
For the first problem ("parse error at =" for the entry_vec
containers in ilut.h), I replaced all calls to
entry_vec::iterator ....
with
typename entry_vec::iterator ....
For the second problem ("no match for call to
'(mtl::dimension<int,0,0>)(int,int) in matrix_implementation.h), the
problem was a call to band_type(int sub, int super).
band_type is typedef'd at the top of the file to Iterator:band_type,
which is USUALLY typedef'd to dimension<int> (from dimension.h) in
other header files. However, dimension itself is typedef'd to
twod_tag at the top of of matrix_implementation.h, which the authors
admit creates a name clash!
So I replaced the call:
inline row_matrix(int sub, int sup, const Matrix& x)
: Base(x,band_type(sub, sup)) { }
with
: Base(x,mtl::dimension<int>(sub, sup)) { }
Not elegant. It would probably be better to get rid of that typdef of
dimension in matrix_implementation.h, since it's a defined class. I
wasn't up to the task, because I'm not a C++ stud and I'm scared that
there are more gremlins hiding in the closet.
Wayne Crawford
--
___________________________________________________
_______________________________________________
This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/