@@ -55,9 +55,11 @@ class AutoScalingWaiter {
5555 const auto & result = outcome.GetResult ();
5656 return std::any_of (
5757 result.GetAutoScalingGroups ().begin (), result.GetAutoScalingGroups ().end (), [](const Model::AutoScalingGroup& item) {
58- return !(std::count_if (item.GetInstances ().begin (), item.GetInstances ().end (), [](const Model::Instance& inner) {
59- return (Model::LifecycleStateMapper::GetNameForLifecycleState (inner.GetLifecycleState ()) == " InService" );
60- }) >= item.GetMinSize ());
58+ return !(static_cast <std::size_t >(
59+ std::count_if (item.GetInstances ().begin (), item.GetInstances ().end (), [](const Model::Instance& inner) {
60+ return (Model::LifecycleStateMapper::GetNameForLifecycleState (inner.GetLifecycleState ()) ==
61+ " InService" );
62+ })) >= item.GetMinSize ());
6163 }) == expected.get <bool >();
6264 }));
6365 acceptors.emplace_back (Aws::MakeUnique<Aws::Utils::PathAcceptor<OutcomeT>>(
@@ -67,9 +69,11 @@ class AutoScalingWaiter {
6769 const auto & result = outcome.GetResult ();
6870 return std::any_of (
6971 result.GetAutoScalingGroups ().begin (), result.GetAutoScalingGroups ().end (), [](const Model::AutoScalingGroup& item) {
70- return !(std::count_if (item.GetInstances ().begin (), item.GetInstances ().end (), [](const Model::Instance& inner) {
71- return (Model::LifecycleStateMapper::GetNameForLifecycleState (inner.GetLifecycleState ()) == " InService" );
72- }) >= item.GetMinSize ());
72+ return !(static_cast <std::size_t >(
73+ std::count_if (item.GetInstances ().begin (), item.GetInstances ().end (), [](const Model::Instance& inner) {
74+ return (Model::LifecycleStateMapper::GetNameForLifecycleState (inner.GetLifecycleState ()) ==
75+ " InService" );
76+ })) >= item.GetMinSize ());
7377 }) == expected.get <bool >();
7478 }));
7579
0 commit comments