implemented non-working features of commit da378ef
This commit is contained in:
parent
da378efaaa
commit
dd69553e62
5
Char.cpp
5
Char.cpp
@ -19,3 +19,8 @@ Char& Char::operator=(char other)
|
|||||||
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Char& Char::operator=(const Char& other)
|
||||||
|
{
|
||||||
|
return (*this).operator=(static_cast<char>(other));
|
||||||
|
}
|
3
Char.h
3
Char.h
@ -19,5 +19,6 @@ public:
|
|||||||
|
|
||||||
explicit Char(size_t index, String& string) noexcept :_index(index), _string(string) {}
|
explicit Char(size_t index, String& string) noexcept :_index(index), _string(string) {}
|
||||||
operator char() const;
|
operator char() const;
|
||||||
Char& operator=(char other);
|
Char& operator=(char);
|
||||||
|
Char& operator=(const Char&);
|
||||||
};
|
};
|
Loading…
Reference in New Issue
Block a user