Skip to content

Commit 3bac2d7

Browse files
committed
use colection::mutable_type
1 parent 3b375c0 commit 3bac2d7

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

tests/unittests/std_interoperability.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -500,14 +500,14 @@ TEST_CASE("Collection and iterator concepts", "[collection][container][iterator]
500500
TEST_CASE("Collection and unsupported iterator concepts", "[collection][container][iterator][std]") {
501501
// std::indirectly_writable
502502
DOCUMENTED_STATIC_FAILURE(std::indirectly_writable<iterator, CollectionType::value_type>);
503-
DOCUMENTED_STATIC_FAILURE(std::indirectly_writable<iterator, CollectionType::value_type::mutable_type>);
503+
DOCUMENTED_STATIC_FAILURE(std::indirectly_writable<iterator, CollectionType::mutable_type>);
504504
DOCUMENTED_STATIC_FAILURE(std::indirectly_writable<const_iterator, CollectionType::value_type>);
505-
DOCUMENTED_STATIC_FAILURE(std::indirectly_writable<const_iterator, CollectionType::value_type::mutable_type>);
505+
DOCUMENTED_STATIC_FAILURE(std::indirectly_writable<const_iterator, CollectionType::mutable_type>);
506506
// std::output_iterator
507507
DOCUMENTED_STATIC_FAILURE(std::output_iterator<iterator, CollectionType::value_type>);
508-
DOCUMENTED_STATIC_FAILURE(std::output_iterator<iterator, CollectionType::value_type::mutable_type>);
508+
DOCUMENTED_STATIC_FAILURE(std::output_iterator<iterator, CollectionType::mutable_type>);
509509
DOCUMENTED_STATIC_FAILURE(std::output_iterator<const_iterator, CollectionType::value_type>);
510-
DOCUMENTED_STATIC_FAILURE(std::output_iterator<const_iterator, CollectionType::value_type::mutable_type>);
510+
DOCUMENTED_STATIC_FAILURE(std::output_iterator<const_iterator, CollectionType::mutable_type>);
511511
// std::forward_iterator
512512
DOCUMENTED_STATIC_FAILURE(std::forward_iterator<iterator>);
513513
DOCUMENTED_STATIC_FAILURE(std::forward_iterator<const_iterator>);
@@ -881,24 +881,24 @@ TEST_CASE("Collection iterators", "[collection][container][iterator][std]") {
881881
// *r++ = o
882882
// iterator
883883
DOCUMENTED_STATIC_FAILURE(traits::has_dereference_assignment_increment_v<iterator, CollectionType::value_type>);
884-
STATIC_REQUIRE(traits::has_dereference_assignment_increment_v<iterator, CollectionType::value_type::mutable_type>);
884+
STATIC_REQUIRE(traits::has_dereference_assignment_increment_v<iterator, CollectionType::mutable_type>);
885885
{
886886
auto coll = CollectionType{};
887887
auto item = coll.create(13ull, 0., 0., 0., 0.);
888888
REQUIRE(coll.begin()->cellID() == 13ull);
889-
auto new_item = CollectionType::value_type::mutable_type{42ull, 0., 0., 0., 0.};
889+
auto new_item = CollectionType::mutable_type{42ull, 0., 0., 0., 0.};
890890
*coll.begin()++ = new_item;
891891
DOCUMENTED_FAILURE(coll.begin()->cellID() == 42ull);
892892
}
893893
// const_iterator
894894
STATIC_REQUIRE(traits::has_dereference_assignment_increment_v<const_iterator, CollectionType::value_type>);
895895
STATIC_REQUIRE(
896-
traits::has_dereference_assignment_increment_v<const_iterator, CollectionType::value_type::mutable_type>);
896+
traits::has_dereference_assignment_increment_v<const_iterator, CollectionType::mutable_type>);
897897
{
898898
auto coll = CollectionType{};
899899
auto item = coll.create(13ull, 0., 0., 0., 0.);
900900
REQUIRE(coll.cbegin()->cellID() == 13ull);
901-
auto new_item = CollectionType::value_type::mutable_type{42ull, 0., 0., 0., 0.};
901+
auto new_item = CollectionType::mutable_type{42ull, 0., 0., 0., 0.};
902902
*coll.cbegin()++ = new_item;
903903
DOCUMENTED_FAILURE(coll.cbegin()->cellID() == 42ull);
904904
new_item.cellID(44ull);
@@ -1103,7 +1103,7 @@ TEST_CASE("Collection as range", "[collection][ranges][std]") {
11031103
STATIC_REQUIRE(std::ranges::input_range<CollectionType>);
11041104
// std::range::output_range
11051105
DOCUMENTED_STATIC_FAILURE(std::ranges::output_range<CollectionType, CollectionType::value_type>);
1106-
DOCUMENTED_STATIC_FAILURE(std::ranges::output_range<CollectionType, CollectionType::value_type::mutable_type>);
1106+
DOCUMENTED_STATIC_FAILURE(std::ranges::output_range<CollectionType, CollectionType::mutable_type>);
11071107
// std::range::forward_range
11081108
DOCUMENTED_STATIC_FAILURE(std::ranges::forward_range<CollectionType>);
11091109
// std::range::bidirectional_range

0 commit comments

Comments
 (0)