Commit ca145b44 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Canonical implementation of IoUringBackend::NotAvailable

Summary: [Folly] Canonical implementation of `IoUringBackend::NotAvailable` - need to export exceptions since they are the most likely use-case for RTTI and can just bring the base class's ctors into scope.

Differential Revision: D19154080

fbshipit-source-id: efaf9440a5ec3d78201448160efe4b8893314956
parent 90052551
...@@ -27,10 +27,9 @@ namespace folly { ...@@ -27,10 +27,9 @@ namespace folly {
class IoUringBackend : public PollIoBackend { class IoUringBackend : public PollIoBackend {
public: public:
class NotAvailable : public std::runtime_error { class FOLLY_EXPORT NotAvailable : public std::runtime_error {
public: public:
explicit NotAvailable(const std::string& what) noexcept using std::runtime_error::runtime_error;
: std::runtime_error(what) {}
}; };
explicit IoUringBackend( explicit IoUringBackend(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment