Boost logo

Boost :

From: Jens Maurer (Jens.Maurer_at_[hidden])
Date: 2001-02-11 16:43:59


Daryle Walker wrote:
> The problem was I got an error for using "boost::size":
[...]
> I've gone back to the "sizeof(data)/sizeof(data[0])" workaround, but why did
> my code treat "data" as a pointer decay instead of an array reference? Is
> my compiler, Metrowerks CodeWarrior Pro 5.3 for the Mac OS, too old?

Yes, your compiler seems to be non-conforming in this regard. Comeau C++
4.2.44 handles this fine, for example.

(Dietmar should really provide a bunch of tests for his array_traits
stuff so that we can add them to the regression tests.)

Jens Maurer


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk