
30 Oct
2007
30 Oct
'07
5:32 p.m.
Hi. I start learning boost.Here is very simple code I can't compile. typedef std::vector<LPCWSTR> type; type test; test[0] = (_T("1")); test[1] = (_T("2")); test[2] = (_T("3")); std::for_each(test.begin(),test.end(), OutputDebugString(_1)); Got compilation error : ----------------------------------------------------------- error C2664: 'OutputDebugStringW' : cannot convert parameter 1 from 'boost::lambda:laceholder1_type' to 'LPCWSTR' ----------------------------------------------------------- Can anybody point me at mistakes I made in the code?