Boost logo

Boost Users :

From: Alexander Bell (a.bell_at_[hidden])
Date: 2006-06-01 03:54:00

Ed Johnson <ed_at_[hidden]> writes:

> I tried the code and got these compilation errors.

sorry... iterator2 has to be initialised from "standard" begin() and end() of

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,


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at