Simple Boost Lambda problem using argument as object. part II

Thank you for your quick replies, and apologies for asking what
are probably quite simple questions. However I find the documentation
of Lambda a bit confusing.
Another sample I am having problems with:
#include 5;
}
};
int main()
{
std::string in;
std::vector alist;
std::vector longAList;
while(in!="end")
{
in="";
std::getline(std::cin,in);
alist.push_back(new A(in));
}
std::for_each(alist.begin(),alist.end(),
boost::lambda::if_then(bind(&A::isLong,_1),longAList.push_back(_1)));
return 1;
}
--------------------------------------
main.cpp: In function `int main()':
main.cpp:37: error: no matching function for call to `std::vector >::push_back(const
boost::lambda::lambda_functor
participants (1)
-
Thaddeus Olczyk