I'm coding a file loader/editor and I have a problem like this: C2679: binary '=' : no operator found
, which takes a right-hand operand of type std::_Vector_iterator<_Myvec>
(or there is no acceptable conversion)
std::string szName;
szName = "";
ReadFile(hFile, &nL, 4, &dwRWC, NULL);
if(nL > 0)
{
std::vector<char> buffer(nL+1, NULL);
ReadFile(hFile, &buffer.begin(), nL, &dwRWC, NULL);
szName = buffer.begin(); //problem is here
}
What could be the problem?