Boost logo

Boost Users :

From: Dave (better_cs_now_at_[hidden])
Date: 2003-11-10 17:47:59


Hello all,

I have recently reviewed the Boost presentation put together by Matthew and
intend to present it to my peers also. It was especially welcome to see
this because I've been wanting to present to my peers on Boost for awhile
but haven't had the time to learn enough about the library to put a
presentation together. So, something I wanted fell right in my lap! Kinda
like finding a $100 bill on the street!

I do have one question about the array library. In the documentation, the
statement is made that the advantage array has over vector is the fact that
since vectors provide the semantics of dynamic arrays, "This results in some
overhead in case only arrays with static sizes are needed.". When
discussing this with my peers, I'd like to present something a little more
concrete to them.

If I have a number of elements that is known at compile time, why,
*specifically*, should I prefer boost::array to std::vector?

Thanks!
Dave


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