Y
yurec
Hi
I start learning boost.Today I tried to use boost::lambda but failed
to compile very simple example.
2 hours of googling gave nothing.
Can anybody help me?
using namespace boost::lambda;
typedef std::map<int,std::string_t> type;
type test;
test[0] = (_T("1"));
test[1] = (_T("2"));
test[2] = (_T("3"));
std::vector<std::string_t> test_vector;
std::for_each(test.begin(),test.end(),
test_vector.push_back(bind(&type::value_type::second,_1))
);
I start learning boost.Today I tried to use boost::lambda but failed
to compile very simple example.
2 hours of googling gave nothing.
Can anybody help me?
using namespace boost::lambda;
typedef std::map<int,std::string_t> type;
type test;
test[0] = (_T("1"));
test[1] = (_T("2"));
test[2] = (_T("3"));
std::vector<std::string_t> test_vector;
std::for_each(test.begin(),test.end(),
test_vector.push_back(bind(&type::value_type::second,_1))
);