3 ms·
i have no idea why you think the standard lib is less blessed than the language. > In C++ the type of "Hacker News" is char * Nope it is at least const char ,
by zabzonk 4y ago
i have no idea why you think the standard lib is less blessed than the language.
> In C++ the type of "Hacker News" is char *
Nope it is at least const char , and if you want to assign it to a variable it is:
const char * const hn = "Hacker News";
jesus, the hn formatting with this is driving me mad
- tialaramex 4y agoHN thinks asterisks mean you want to emphasise text (these days using italics) so you should in most cases escape them with a backslash. Much of the C++ standard library (including for example std::array) is not available in freestanding C++. Should it be? Perhaps. But it isn't. In contrast to Rust's conscious decision to provide core, alloc and std as separate layers, in the C++ there's a rather ad hoc process to decide what's freestanding.