|
Boost Users : |
Subject: [Boost-users] Using lambda expressions in stl algorithms
From: przemyslaw.sliwa_at_[hidden]
Date: 2010-12-14 09:49:56
Hello,
Could someone tell me why this code does not compile? Can it be modified
in order to compile?
struct CcyCplEventKey
{
CurrencyCouple CcyCpl;
EventType Event;
}
typedef std::map<CurrencyEventKey, CurrencyEventPtr> mapType;
mapType ccyOut;
std::for_each(ccyOut.begin(), ccyOut.end(),
(&*boost::lambda::_1)->*&CcyCplEventKey::Event);
Cheers
___________________________________________________________
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is prohibited.
Please refer to http://www.bnpparibas.co.uk/en/information/legal_information.asp?Code=ECAS-845C5H for additional disclosures.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net