I'm trying to implement a class with similar behavior to std::string and I'm getting the error in the std::copy line:
Str& operator+=(const Str& s){
std::copy(s.data.begin(), s.data.end(), std::back_inserter(data));
return *this;
}
'data' is an object of type vec < char> , and vec is a vector-like class that I implemented myself and it seems to be working fine on its own.
It also says this:
C:\MinGW\bin..\lib\gcc\mingw32\3.4.2........\include\c++\3.4.2\bits\stl_iterator.h||In instantiation of `std::back_insert_iterator < vec< char> >':|