Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2006-06-28 00:05:47


Gennaro Prota <gennaro_prota_at_[hidden]> writes:

> The real somersaults begin when you want the multidimensional case :)
> Here's what came out:

I'm pretty sure it's easier than this. IIRC, the macro can still do
the old sizeof(a)/sizeof(a[0]) trick; it just needs to add something
that will cause an error if a is not an array.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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