23 Jun
2026
23 Jun
'26
6:17 p.m.
wt., 23 cze 2026 o 18:03 Ruben Perez via Boost <boost@lists.boost.org> napisaĆ(a):
3) Asio has the concept of error dispositions [6]. In a nutshell, these are a generalization of error codes, so custom error types can be used in error code-aware functionality, like when_any. This is useful in code using specialized types. Future candidate Boost.Http uses this in its router [8], and I intended to use it as a way to attach error messages in my database libraries. I discuss my use case in more detail in this issue [9]. Have you considered the feature?
[6]
https://www.boost.org/doc/libs/latest/doc/html/boost_asio/reference/Disposit...
Would you be able to provide an example illustrating how you would use this? Regards, &rzej;