[cfe-dev] [libcxx] What C standard is assumed in libcxx?

Joerg Sonnenberger via cfe-dev cfe-dev at lists.llvm.org
Wed May 25 07:10:26 PDT 2016


On Wed, May 25, 2016 at 10:46:03AM +0100, Asiri Rathnayake via cfe-dev wrote:
> For example, the current std::thread support (C++11) does not assume the
> underlying C library to be C11 compliant, it instead depends on pthreads.
> On the other hand, we do seem to assume a C11 compliant <ctime> header
> (e.g. timespec).

I think you are confusing C11 functionality with basic POSIX functions.
While C11 might have merged a bunch of things from POSIX, things like
timespec are much older and wildly supported. That's unlike C11
threading for example.

Joerg



More information about the cfe-dev mailing list