Re: [Boost-users] Simple Boost Lambda problem using argument as object. part II
27 Jul
2005
27 Jul
'05
8:19 a.m.
Hi Thaddeus, this code works for me... Greetings Tino int main() { std::string in; std::vector alist; std::vector longAList; typedef std::vector myType; // std::back_insert_iterator< myType > inserter(longAList); while(in!="end") { in=""; std::getline(std::cin,in); alist.push_back(new A(in)); } std::for_each(alist.begin(),alist.end(), //*inserter++ = &(*_1) boost::lambda::if_then( bind(&A::isLong,_1), bind(&myType::push_back ,&longAList, _1) )); return 1; } ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
7053
Age (days ago)
7053
Last active (days ago)
0 comments
1 participants
participants (1)
-
Tino S.