3 ms·
> Now you need to ensure that your entire error path does not allocate or you have to deal with allocation errors in the error path as well And that is usually
by throw-qqqqq 9mo ago
> Now you need to ensure that your entire error path does not allocate or you have to deal with allocation errors in the error path as well
And that is usually not too difficult in C (in my experience), where allocation is explicit.
In C++, on the other hand, this quickly gets hairy IMO.