Boost logo

Boost :

From: AlisdairM (alisdair.meredith_at_[hidden])
Date: 2003-12-07 12:36:08


"Jonathan Turkanis" <technews_at_[hidden]> wrote in
news:bqvnfh$kc$1_at_[hidden]:

> Fortunately, I only need the size of an array type. AlistairM's
> original suggestion works at runtime for an array variable. I'm having
> trouble thinking of an example where you need the size of an array
> variable at compile-time, but you don't have access to its type. I'm
> assuming from the discussion that this need has come up. Could you
> give an example?

Trivial example: A compile time algorithm to transform an string literal to
a widestring literal.

AlisdairM


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