3 ms·
I do some embedded development in C++11 with exceptions disabled (for size/compatibility) and using RAII to the fullest. It's all very smooth and works very we
by wvenable 11y ago
I do some embedded development in C++11 with exceptions disabled (for size/compatibility) and using RAII to the fullest. It's all very smooth and works very well.
- corysama 11y agoBendersky explicitly put off error handling for a later post. But, that's the interesting part by far. How does your team smooth out handling errors in RAII without exceptions?
- wvenable 11y agoYou can simply return error values either as a tuple, an error code, etc. RAII, of course, takes care of the cleanup either way.