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

Fix map_array no longer has sized constructor

This commit is contained in:
Michael Stevens
2005-03-16 09:27:36 +00:00
parent 9da1ea5a1e
commit 98e54f687b

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;
}