Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2018-04-08 01:44:51 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2018-04-08 01:44:51 +0300
commit60cce3d8b8cce953c67ecb22a082ad4d4c1d3aa9 (patch)
tree4dde97f506595c4590a6e4b49eacad82238b58fd /test/tests/coroutines.cpp
parentd0c561c7d38af021411c41a0161188a241364ac6 (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.cpp2
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;
}