Tidy up error types:

* Restructure header material
* Clean up namespace type injections
* Remove extraneous 'success' constants
This commit is contained in:
Vinnie Falco committed 2017-07-20 08:12:12 -07:00
1 parent f2a283ed10
commit 6b0b016b21
23 files changed
+260 -292

No files matched your search

+1 -8
View File
@@ -16,10 +16,8 @@ namespace websocket {
/// Error codes returned from @ref stream operations.
enum class error
{
success = 0,
/// Both sides performed a WebSocket close
closed,
closed = 1,
/// WebSocket connection failed, protocol violation
failed,
@@ -52,11 +50,6 @@ enum class error
general
};
#if ! GENERATING_DOCS
error_code
make_error_code(error e);
#endif
} // websocket
} // beast