2
0
mirror of https://github.com/boostorg/ublas.git synced 2026-02-09 23:42:23 +00:00

Fix map_array no longer has sized constructor

svn path=/trunk/boost/libs/numeric/ublas/; revision=27690
This commit is contained in:
Michael Stevens
2005-03-16 09:27:36 +00:00
parent 5df528ec6a
commit 583c8af32a

View File

@@ -18,8 +18,9 @@
int main () {
using namespace boost::numeric::ublas;
map_array<int, double> a (3);
for (unsigned i = 0; i < a.size (); ++ i) {
map_array<int, double> a;
a.reserve (3);
for (unsigned i = 0; i < 3; ++ i) {
a [i] = i;
std::cout << a [i] << std::endl;
}