Getting this error code, is there something about std::remove() that I am not understanding here?
1>AoE2Wide.cpp(337): error C2664: 'strcpy' : cannot convert parameter 1 from 'std::string' to 'char *'
I tried using '=' instead of strcpy() too, no luck.
class Item
{
public:
int Pos;
int ReferenceValue;
std::string Type;
int Parameter;
std::string Comments;
std::string Asm;
int OriginalPos;
Item(int p, int rf, std::string tp, std::string cm)
{
Pos = p;
ReferenceValue = rf;
Type = tp;
Comments = cm;
}
};
strcpy(item->Comments, std::remove(splitComment.at(1).begin(), splitComment.at(1).end(), ' ' ));