forked from cppalliance/NuDB
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Define error::success so that error_codes exhibit proper 'truthiness'
Right now if ec is assigned to key_not_found and then tested in a conditional, the error code will not evaluate properly. This is because key_not_found currently is set to 0 (first enum value). Includes a 'success' error code similar to that defined in boost::system: https://www.boost.org/doc/libs/1_61_0/boost/system/error_code.hpp
- Loading branch information
1 parent
79c1dca
commit 2520aee
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters