[PATCH] D23926: [libcxx] Don't use C99 math ops in -std=c++03 mode

Asiri Rathnayake via cfe-commits cfe-commits at lists.llvm.org
Sat Sep 3 23:22:48 PDT 2016


@mclow.lists: Our C library is aware of the fact that it may be used from a
C++ context, yes.

So you think it's OK for libc++ to expect C99 operations at all language
standards?

Cheers,

/ Asiri
On 4 Sep 2016 01:16, "Marshall Clow via cfe-commits" <
cfe-commits at lists.llvm.org> wrote:

> mclow.lists added a comment.
>
> > We have quite a strict C library which is picky about what it exposes
> under different standards. For example, it won't expose C99 math ops if it
> is being used under `__cplusplus < 201103L` ...
>
>
> That sounds .. odd to me, having the behavior of the C library depend on
> the value of `__cplusplus`
>
>
> https://reviews.llvm.org/D23926
>
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160904/4d0b0a5f/attachment.html>


More information about the cfe-commits mailing list