Dont understand error message
I get an error message on the second line and I dont understand why. Shouldnt this code compile?
Code:
wstring s(FileName, FileNameLength);
s = wstring(L"\\") + s;
the message is:
1>d:\dev\projects\dirwatcher\dirwatcher\dirwatcher .cpp(27) : error C2784: 'std::_String_iterator<_Elem,_Traits,_Alloc> std::operator +(_String_iterator<_Elem,_Traits,_Alloc>::differen ce_type,std::_String_iterator<_Elem,_Traits,_Alloc >)' : could not deduce template argument for 'std::_String_iterator<_Elem,_Traits,_Alloc>' from 'std::wstring'