Why not just replace std::copy with memmove()?
void str2vec(std::vector<char>& v, const std::string& s)
{
v.resize( s.size()+1 );
//std::copy(s.begin(), s.end(), v.begin());...
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: 2kaud Search: Search took 0.10 seconds.
Results 1 to 1 of 1
|
Click Here to Expand Forum to Full Width |