logoalt Hacker News

1718627440last Monday at 4:04 PM1 replyview on HN

So as to your understanding

> freestanding C++ requires the C++ standard library, but not the C standard library

is true?

> The "abstract machine" C++ assumes in the standard is itself a deeply puzzling construct.

I find the abstract machine to be quite a neat abstraction, but I am also more of a C guy.


Replies

112233last Monday at 6:34 PM

Looking here:

https://eel.is/c++draft/compliance

One of required headers in freestanding, <cstdlib>, is labelled "C standard library", but it is not <stdlib.h> Something similar with other <csomething> headers.

This kinda implies C library is required, if I read it correctly, but maybe someone else can correct me: https://eel.is/c++draft/library.c

show 1 reply