$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Andrey Semashev (andysem_at_[hidden])
Date: 2007-10-30 13:40:04
Yurij Zhacun wrote:
> 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?
Oh, and BTW that will crash since you didn't do test.resize().