[llvm] r194362 - Add LLVM_HAS_INITIALIZER_LISTS for upcoming C++11 support. Use it in ArrayRef

Chandler Carruth chandlerc at google.com
Sun Nov 10 20:20:05 PST 2013


On Sun, Nov 10, 2013 at 7:58 PM, Pete Cooper <peter_cooper at apple.com> wrote:

> +/// \brief Does the compiler support generalized initializers (using
> braced
> +/// lists and std::initializer_list).
> +#if (__has_feature(cxx_generalized_initializers)   \
> +|| defined(__GXX_EXPERIMENTAL_CXX0X__))
>

There are a lot of versions of GCC which support some of -std=c++0x, define
this macro, and don't support initializer lists. How thoroughly have you
tested this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131110/ea1d577e/attachment.html>


More information about the llvm-commits mailing list