Hy,
I have a litle problem with the folowing code:
String::String(const String & ori){
tekst = NULL;
set_String(ori);
};
void set_String(const String & ori){
//opppassen voor self reference
if ( this != ori )
{
set_String( ori.get_String() );
}
else
{
cout << "ERROR: self reference !! " << endl;
}
};
Code in the class:
String(const String &);
void set_String(const String &);
And i'm getting the folowing error:
"global functions do not have this pointeres"
I have a litle problem with the folowing code:
String::String(const String & ori){
tekst = NULL;
set_String(ori);
};
void set_String(const String & ori){
//opppassen voor self reference
if ( this != ori )
{
set_String( ori.get_String() );
}
else
{
cout << "ERROR: self reference !! " << endl;
}
};
Code in the class:
String(const String &);
void set_String(const String &);
And i'm getting the folowing error:
"global functions do not have this pointeres"