diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2018-04-11 14:09:48 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2018-04-11 14:09:48 +0300 |
commit | 487b9a266f9a2d5e81902fde842c41cbd53f1ce4 (patch) | |
tree | aaf7fed1f6d2b30b0ee7c25cc81bf608e336b7f0 /test/tests/coroutines.cpp | |
parent | ed04b40b799d1cb2b4c1787b9a1089050e3c89ae (diff) |
Convert AFIO over to use std::byte for buffers instead of char.
Diffstat (limited to 'test/tests/coroutines.cpp')
-rw-r--r-- | test/tests/coroutines.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tests/coroutines.cpp b/test/tests/coroutines.cpp index 35c89291..ec534793 100644 --- a/test/tests/coroutines.cpp +++ b/test/tests/coroutines.cpp @@ -43,7 +43,7 @@ static inline void TestAsyncFileHandleCoroutines() // Launch 8 coroutines, each writing 4Kb of chars 0-8 to every 32Kb block auto coroutine = [&h](size_t no) -> std::future<void> { - std::vector<char, afio::utils::page_allocator<char>> buffer(4096); + std::vector<afio::byte, afio::utils::page_allocator<afio::byte>> buffer(4096); memset(buffer.data(), (int) ('0' + no), 4096); afio::async_file_handle::const_buffer_type bt{buffer.data(), buffer.size()}; for(size_t n = 0; n < 128; n++) @@ -71,7 +71,7 @@ static inline void TestAsyncFileHandleCoroutines() //! [coroutines_example] // Check that the file has the right contents - alignas(4096) char buffer1[4096], buffer2[4096]; + alignas(4096) afio::byte buffer1[4096], buffer2[4096]; afio::async_file_handle::extent_type offset = 0; for(size_t n = 0; n < 128; n++) { |