|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2003-01-18 13:13:45
Gennaro Prota <gennaro_prota_at_[hidden]> writes:
> Not that I think the application to "binary literals" is particularly
> important, but an elegant implementation would be possible if string
> literals and [] operator were allowed in constant expressions; this
> way one could easily "extract" characters from a string literal and
> use them as non-type template arguments of type char. Unfortunately
> the committee seems on the road of prohibiting this and other similar
> (and potentially more useful) uses of string literals in constant
> expressions:
>
> http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/cwg_active.html#366
Huh? They're already prohibited. That item is just concerned with
eliminating a contradiction in the standard text in accordance with
the original intent. On the contrary, the committee has been
occasionally discussing how to allow them, since many of us see the
value.
-- David Abrahams dave_at_[hidden] * http://www.boost-consulting.com Boost support, enhancements, training, and commercial distribution
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk