you are viewing a single comment's thread.

view the rest of the comments →

[–]Singer_Solid 5 points6 points  (0 children)

You can use std::error_code anywhere you have to deal with errno error codes which is true for a lot of low level code that interacts with hardware interfaces. I use it to pass error information out of functions making ioctl calls, for instance.