Skip to content

Commit

Permalink
Added fixes for deque operator-(). Removed redundant operator that wa…
Browse files Browse the repository at this point in the history
…s causing compile errors for C++20

# Conflicts:
#	test/test_deque.cpp
  • Loading branch information
John Wellbelove committed Mar 4, 2024
1 parent 7f13eeb commit 37ac046
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions test/test_deque.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,20 +107,11 @@ namespace
//*************************************************************************
TEST(test_constructor_fill)
{
//Compare_Data compare_data(SIZE, N999);
//DataNDC data(SIZE, N999);
Compare_Data compare_data(SIZE, N999);
DataNDC data(SIZE, N999);

etl::deque<int, 10> data;
using iter_type = etl::deque<int, 10>::iterator;

bool b1 = std::random_access_iterator<iter_type>;

bool b2 = std::sentinel_for<iter_type, iter_type>;

//bool b = std::equal(data.begin(), data.end(), data.begin());

//CHECK_EQUAL(compare_data.size(), data.size());
//CHECK(std::equal(compare_data.begin(), compare_data.end(), data.begin()));
CHECK_EQUAL(compare_data.size(), data.size());
CHECK(std::equal(compare_data.begin(), compare_data.end(), data.begin()));
}

//*************************************************************************
Expand Down

0 comments on commit 37ac046

Please sign in to comment.