Šimon Tóth’s Post

View profile for Šimon Tóth

C++ Educational Content Creator | 20 years of Software Engineering experience distilled into digestible daily posts

If you need to represent error codes specific to your domain, you can use the std::error_code customization mechanism. A custom implementation has three parts: - an enum representing the domain-specific error codes - a corresponding error category that translates the error codes into text descriptions - a mapping from the enum type to the category type Compiler Explorer link: https://lnkd.in/ePJMCKZx #cpp #cplusplus #coding #programming #dailybiteofcpp

  • text

Cool! Are there any reason why you not done a static_cast on the condition variable to be able to use the TransactionError enum in the switch-case?

Like
Reply

cool, didnt know you have std functions for this. always implemented by my self

Like
Reply
See more comments

To view or add a comment, sign in

Explore content categories