Boost logo

Boost :

From: Yurij Zhacun (Yurij.Zhacun_at_[hidden])
Date: 2007-10-30 12:32:11


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?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk