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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user