//u1.cpp #include using namespace boost::numeric::ublas ; typedef unsigned ind1_t; //may also try "int" here,results are the same,but it will generate a lot of warnings,in addition typedef std::size_t ind2_t; int main(){ typedef compressed_matrix > sm1_t; typedef compressed_matrix > sm2_t; sm1_t A(2,2); sm2_t B(A); // Copying is Ok sm2_t B2(2,2); // Assignment is not ok B2 = A; //this line passed compilation with version 1.31,but not now return 0; }