diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2020-03-24 13:43:56 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2020-03-24 13:43:56 +0300 |
commit | d1961d3029b65ff9d7abfeb01fe288c23ca92470 (patch) | |
tree | 681c2f385cbe56409419977aab323ba3cfbabfb3 /example | |
parent | 38acd5685b0ad798754f2c0357043e0dd199808d (diff) |
Last round of C++ 20 fixes, all is clean now.
Diffstat (limited to 'example')
-rw-r--r-- | example/use_cases.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/use_cases.cpp b/example/use_cases.cpp index 62ab7d23..ac93b06b 100644 --- a/example/use_cases.cpp +++ b/example/use_cases.cpp @@ -100,7 +100,7 @@ void read_entire_file2() llfio::async_file_handle::buffer_type scatter_req{ buffers[n].first.data(), buffers[n].first.size() }; // buffer to fill auto ret = llfio::async_read( // fh, // handle to read from - { { scatter_req }, valid_extents[n].offset }, // The scatter request buffers + offset + { { &scatter_req, 1 }, valid_extents[n].offset }, // The scatter request buffers + offset []( // The completion handler llfio::async_file_handle *, // The parent handle llfio::async_file_handle::io_result<llfio::async_file_handle::buffers_type> && // Result of the i/o @@ -421,4 +421,4 @@ std::future<void> coroutine_write() int main() { return 0; -}
\ No newline at end of file +} |