Skip to content

Commit

Permalink
iox-eclipse-iceoryx#1662 Update release notes, add test
Browse files Browse the repository at this point in the history
Signed-off-by: Marika Lehmann <[email protected]>
  • Loading branch information
FerdinandSpitzschnueffler committed Sep 23, 2022
1 parent e8bbe93 commit 863c3f1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions doc/website/release-notes/iceoryx-unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
- Extract `iceoryx_hoofs/platform` into separate package `iceoryx_platform` [\#1615](https://github.com/eclipse-iceoryx/iceoryx/issues/1615)
- `cxx::unique_ptr` is no longer nullable [\#1104](https://github.com/eclipse-iceoryx/iceoryx/issues/1104)
- Use builder pattern in mutex [\#1036](https://github.com/eclipse-iceoryx/iceoryx/issues/1036)
- Change return type of `cxx::vector::erase` to bool [\#1662](https://github.com/eclipse-iceoryx/iceoryx/issues/1662)

**Workflow:**

Expand Down Expand Up @@ -461,3 +462,13 @@
.create(myMutex);
myMutex->lock();
```

24. Change return type of `cxx::vector::erase` from iterator to bool

```cpp
// before
auto* iter = myCxxVector.erase(myCxxVector.begin());

// after
bool success = myCxxVector.erase(myCxxVector.begin());
```
1 change: 1 addition & 0 deletions iceoryx_hoofs/test/moduletests/test_cxx_vector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,7 @@ TEST_F(vector_test, EraseFailsWhenElementIsInvalid)
::testing::Test::RecordProperty("TEST_ID", "ff7c1c4a-4ef5-4905-a107-6f1d27462d47");
auto* i = sut.begin() + 5U;
EXPECT_FALSE(sut.erase(i));
EXPECT_FALSE(sut.erase(sut.end()));
}

TEST_F(vector_test, ErasingElementDecreasesSize)
Expand Down

0 comments on commit 863c3f1

Please sign in to comment.