Gennaro Prota <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] * http://www.boost-consulting.com Boost support, enhancements, training, and commercial distribution _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost