top | item 46183866

(no title)

DashAnimal | 2 months ago

What industry do you work in? Modern RAII practices are pretty prevalent

discuss

order

Cyan488|2 months ago

This is common in embedded systems, where there is limited memory and no OS to run garbage collection.

criddell|2 months ago

Garbage collection in C++?

jandrewrogers|2 months ago

What does RAII have to do with any of the above?

WD-42|2 months ago

0 allocations after the program initializes.

DashAnimal|2 months ago

Well if you're using the standard library then you're not really paying attention to allocations and deallocations for one. For instance, the use of std::string. So I guess I'm wondering if you work in an industry that avoids std?

nmhancoc|2 months ago

Not an expert but I’m pretty sure no exceptions means you can’t use significant parts of std algorithm or the std containers.

And if you’re using pooling I think RAII gets significantly trickier to do.

astrobe_|2 months ago

And what does "modern" has to do with it anyway.