diff options
author | Maxim Pimenov <m@maps.me> | 2015-07-21 13:25:05 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:56:50 +0300 |
commit | ab311a67965b714e155000cdec75ed1c6d622d85 (patch) | |
tree | 9f95252d1d058206cd36b9acffad5376847daf02 /coding | |
parent | 5d5b17e42d067ffd51a71ed008eb4649548f278a (diff) |
Fix build.
Diffstat (limited to 'coding')
-rw-r--r-- | coding/coding_tests/bit_streams_test.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/coding/coding_tests/bit_streams_test.cpp b/coding/coding_tests/bit_streams_test.cpp index d64acd398a..e1d179bbb8 100644 --- a/coding/coding_tests/bit_streams_test.cpp +++ b/coding/coding_tests/bit_streams_test.cpp @@ -28,10 +28,12 @@ UNIT_TEST(BitStreams_Smoke) } vector<uint8_t> encodedBits; - MemWriter<vector<uint8_t>> encodedBitsWriter(encodedBits); - BitWriter<MemWriter<vector<uint8_t>>> bitSink(encodedBitsWriter); - for (size_t i = 0; i < nums.size(); ++i) - bitSink.Write(nums[i].first, nums[i].second); + { + MemWriter<vector<uint8_t>> encodedBitsWriter(encodedBits); + BitWriter<MemWriter<vector<uint8_t>>> bitSink(encodedBitsWriter); + for (size_t i = 0; i < nums.size(); ++i) + bitSink.Write(nums[i].first, nums[i].second); + } MemReader encodedBitsReader(encodedBits.data(), encodedBits.size()); ReaderSource<MemReader> reader(encodedBitsReader); |