mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
commit
6845e84f0b
|
@ -1254,7 +1254,7 @@ However, if failing to make a connection is considerd an error, then a failure s
|
|||
|
||||
**Exception**: Many traditional interface functions (e.g., UNIX signal handlers) use error codes (e.g., `errno`) to report what are really status codes, rather than errors. You don't have good alternative to using such, so calling these does not violate the rule.
|
||||
|
||||
**Alternative**: If you can't use exceptions (e.g. because your code is full of old-style raw-pointer use or because there are hard-real-rime constraints),
|
||||
**Alternative**: If you can't use exceptions (e.g. because your code is full of old-style raw-pointer use or because there are hard-real-time constraints),
|
||||
consider using a style that returns a pair of values:
|
||||
|
||||
int val;
|
||||
|
|
Loading…
Reference in New Issue
Block a user