[Patch] Add C++14 feature querying macro `cxx_digit_separators` describing support for "Single-Quotation-Mark as a Digit Separator"

Richard Smith richard at metafoo.co.uk
Wed Nov 12 13:19:04 PST 2014


On Thu, Oct 23, 2014 at 7:05 PM, Michel Morin <mimomorin at gmail.com> wrote:

> Richard Smith wrote:
> > I was thinking we should just say:
> >
> >   Use ``__cpp_digit_separators`` to determine if support for digit
> > separators using single quotes (for instance ``10'000``) is enabled.
>
> OK, done. Patch attached.


Thanks, and sorry for the delay (I wanted to wait until after the C++
committee meeting so the new version of SD-6 could get more officially
accepted). I extended the cpp_digit_separators patch to cover all the new
SD-6 feature test macros  and committed as r221816.

I'm holding off on the cxx_digit_separators patch for now. It's much easier
to add a feature test macro than to remove one, so I'd like to wait and see
if there's a demand for feature names that match the SD-6 macros before
adding more.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141112/aa374417/attachment.html>


More information about the cfe-commits mailing list