Boost logo

Boost Users :

From: Barberi (scbarberi_at_[hidden])
Date: 2008-02-12 15:21:16


A boost newbie asks, how can I initialize a bounded_matrix? I tried various things like this:

bounded_matrix<double, 2, 2> rot = list_of( 1.) (2.) (3.) (4.);

and got the error message 'no overloaded function takes 2 arguments'. So far, I'm reduced to using copy assignment from a c array, but there's got to be a better way. What am I missing?

BTW, I'm using MSVC++ 2008, with the MSVC++ 8 boost libraries.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net