diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2018-04-23 11:55:07 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2018-04-23 11:55:07 +0300 |
commit | 0c1015593f476fc7c7cc9d497f7b4f6a11819a8e (patch) | |
tree | e1c89fb03cdf7f5c382ca7f1f6b73c96be18e1dc /test/tests/async_io.cpp | |
parent | 12e65bdbd981ac24b91af035cf0e1d73a1b4c4cb (diff) |
Make errc AFIO namespace defined
Diffstat (limited to 'test/tests/async_io.cpp')
-rw-r--r-- | test/tests/async_io.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tests/async_io.cpp b/test/tests/async_io.cpp index bb4be9fa..0cc0d91b 100644 --- a/test/tests/async_io.cpp +++ b/test/tests/async_io.cpp @@ -45,7 +45,7 @@ static inline void TestAsyncFileHandle() auto schedule_io = [&] { return h.async_write({bt, n * 4096}, [ p = std::move(p), n ](afio::async_file_handle *, afio::async_file_handle::io_result<afio::async_file_handle::const_buffers_type> & result) mutable { (void) n; - if(!result && result.error() == std::errc::resource_unavailable_try_again) + if(!result && result.error() == afio::errc::resource_unavailable_try_again) { std::cout << "*** Completion handler saw error " << result.error() << std::endl; } @@ -62,7 +62,7 @@ static inline void TestAsyncFileHandle() }); }; auto g(schedule_io()); - if(!g && g.error() == std::errc::resource_unavailable_try_again) + if(!g && g.error() == afio::errc::resource_unavailable_try_again) { // Sleep until at least i/o is processed service.run().value(); |