This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch devs/devilhorns/apos
in repository efl.
View the commit online.
commit ce5bdeeaa048fed802a4c5b0a405fcfe6ec4d7f5
Author: Swagtoy <[email protected]>
AuthorDate: Thu Feb 12 11:18:32 2026 -0500
tests: Fix std::not1 and std::bind1st deprecation
I think the preferred solution nowadays would be std::not_fn with
std::equal_to<int>()
but... the lambda is shorter anyway. I have no idea why it was written
like this.
Signed-off-by: Swagtoy <[email protected]>
---
src/tests/eina_cxx/eina_cxx_test_inlist.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/tests/eina_cxx/eina_cxx_test_inlist.cc b/src/tests/eina_cxx/eina_cxx_test_inlist.cc
index d1442ab389..e1d5d4de5a 100644
--- a/src/tests/eina_cxx/eina_cxx_test_inlist.cc
+++ b/src/tests/eina_cxx/eina_cxx_test_inlist.cc
@@ -171,8 +171,8 @@ EFL_START_TEST(eina_cxx_inlist_constructors)
efl::eina::inlist<int> list2(10, 5);
ck_assert(list2.size() == 10);
- ck_assert(std::find_if(list2.begin(), list2.end()
- , std::not1(std::bind1st(std::equal_to<int>(), 5))) == list2.end());
+ ck_assert(std::find_if(list2.begin(), list2.end(),
+ [](int n) { return n != 5; }) == list2.end());
efl::eina::inlist<int> list3(list2);
ck_assert(list2 == list3);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.