diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2018-04-08 01:44:51 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2018-04-08 01:44:51 +0300 |
commit | 60cce3d8b8cce953c67ecb22a082ad4d4c1d3aa9 (patch) | |
tree | 4dde97f506595c4590a6e4b49eacad82238b58fd /test/tests/coroutines.cpp | |
parent | d0c561c7d38af021411c41a0161188a241364ac6 (diff) |
Replace single buffer convenience overloads of read() and write() with initialiser list ones instead.
Make an example of use cases, and use those snippets in the docs
Diffstat (limited to 'test/tests/coroutines.cpp')
-rw-r--r-- | test/tests/coroutines.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tests/coroutines.cpp b/test/tests/coroutines.cpp index b39fc24f..35c89291 100644 --- a/test/tests/coroutines.cpp +++ b/test/tests/coroutines.cpp @@ -78,7 +78,7 @@ static inline void TestAsyncFileHandleCoroutines() for(size_t m = 0; m < 8; m++) { memset(buffer2, (int) ('0' + m), 4096); - h.read(offset, buffer1, 4096).value(); + h.read(offset, {{buffer1, 4096}}).value(); BOOST_CHECK(!memcmp(buffer1, buffer2, 4096)); offset += 4096; } |