implemented non-working features of commit da378ef

This commit is contained in:
Kjistóf 2016-11-02 11:00:14 +01:00
parent da378efaaa
commit dd69553e62
2 changed files with 7 additions and 1 deletions

View File

@ -19,3 +19,8 @@ Char& Char::operator=(char other)
return *this;
}
Char& Char::operator=(const Char& other)
{
return (*this).operator=(static_cast<char>(other));
}

3
Char.h
View File

@ -19,5 +19,6 @@ public:
explicit Char(size_t index, String& string) noexcept :_index(index), _string(string) {}
operator char() const;
Char& operator=(char other);
Char& operator=(char);
Char& operator=(const Char&);
};