Skip to content

Commit

Permalink
Fix compilation errors on older standards
Browse files Browse the repository at this point in the history
I believe some older standards have less intelligent template type
deduction.
  • Loading branch information
AlexMax committed Jan 1, 2024
1 parent ecd4f24 commit bedda7c
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions tests/test_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@

#include "./test.h"

using PartialVectorStream = PartialStream<LexIO::VectorStream>;
using PartialArrayStream = PartialStream<LexIO::ArrayStream<5>>;

//******************************************************************************

struct GoodReader
Expand Down Expand Up @@ -163,7 +166,7 @@ TEST(Core, ReadPtrLen)

TEST(Core, ReadPtrLenPartial)
{
auto stream = PartialStream(GetStream());
auto stream = PartialVectorStream(GetStream());

size_t i = 0;
uint8_t buffer[5] = {0};
Expand Down Expand Up @@ -204,7 +207,7 @@ TEST(Core, ReadArray)

TEST(Core, ReadArrayPartial)
{
auto stream = PartialStream(GetStream());
auto stream = PartialVectorStream(GetStream());

size_t i = 0;
uint8_t buffer[5] = {0};
Expand Down Expand Up @@ -245,7 +248,7 @@ TEST(Core, ReadIterator)

TEST(Core, ReadIteratorPartial)
{
auto stream = PartialStream(GetStream());
auto stream = PartialVectorStream(GetStream());

size_t i = 0;
uint8_t buffer[5] = {0};
Expand Down Expand Up @@ -383,7 +386,7 @@ TEST(Core, WritePtrLen)

TEST(Core, WritePtrLenPartial)
{
auto stream = PartialStream{LexIO::ArrayStream<5>{}};
auto stream = PartialArrayStream{LexIO::ArrayStream<5>{}};
const auto &cstream = stream;

size_t i = 0;
Expand Down Expand Up @@ -427,7 +430,7 @@ TEST(Core, WriteArray)

TEST(Core, WriteArrayPartial)
{
auto stream = PartialStream{LexIO::ArrayStream<5>{}};
auto stream = PartialArrayStream{LexIO::ArrayStream<5>{}};
const auto &cstream = stream;

size_t i = 0;
Expand Down Expand Up @@ -471,7 +474,7 @@ TEST(Core, WriteIterator)

TEST(Core, WriteIteratorPartial)
{
auto stream = PartialStream{LexIO::ArrayStream<5>{}};
auto stream = PartialArrayStream{LexIO::ArrayStream<5>{}};
const auto &cstream = stream;

size_t i = 0;
Expand Down

0 comments on commit bedda7c

Please sign in to comment.