
1 Jun
2006
1 Jun
'06
7:54 a.m.
Ed Johnson
I tried the code and got these compilation errors.
sorry... iterator2 has to be initialised from "standard" begin() and end() of iterator1: typedef matrix<double> MatType; MatType m(3,3); for(MatType::iterator1 i1 = m.begin1(); i1!=m.end1(); ++i1) for(MatType::iterator2 i2 = i1.begin(); i2!=i1.end(); ++i2) *i2 = 2; this time I tested the code (g++ v. 4.02, boost 1.33.1). Hope that helps, Alexander.