Method parameter problem
Posted on 2007-04-04
i have a problem with a pointer and need someone to explain me how to fix it. My code is the following:
The method rebuild() has the following signature: void rebuild(std::vector< byte > &vBuffer) const
Whenever i try to call the method the way i described above, i get the following error:
d:\...\patchengine.cpp(558) : error C2664: 'PeLib::PeHeaderT<x>::rebuild' : cannot convert parameter 1 from 'std::vector<_Ty>' to 'std::vector<_Ty> &'. How do i have to call the method so the above works?