Gennaro Prota <[EMAIL PROTECTED]> writes: > On Sat, 18 Jan 2003 13:13:45 -0500, David Abrahams > <[EMAIL PROTECTED]> wrote: > >>Gennaro Prota <[EMAIL PROTECTED]> writes: >>> 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. > > I meant that they (you ;-)) want to prohibit any use of string > literals in constant expressions.
Nobody "wants to". It's not well-defined in the standard what it means to treat a string literal as an integral constant expression. Nobody ever intended them to be integral constant expressions. In standardization, you don't resolve problems like this by exploiting loopholes, and especially during this stage of standardization, which is dedicated to closing them. If you want to enable a new capability, you deal with it separately and intentionally. -- 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