diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-03-01 14:03:56 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-03-01 14:34:02 -0300 |
commit | 34c599246c7e25194bce4157e166b9bead2a1795 (patch) | |
tree | 054ec828ed6e51e0adfef48c6a6e36bc572dea9c /tests/libsample/sometime.h | |
parent | db7ce37a0de3e52f2940d8823e4308e89ffbb052 (diff) |
Adds unit test for implicit conversion defined by a conversion operator.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Diffstat (limited to 'tests/libsample/sometime.h')
-rw-r--r-- | tests/libsample/sometime.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/libsample/sometime.h b/tests/libsample/sometime.h index 1db8af865..6f20425e3 100644 --- a/tests/libsample/sometime.h +++ b/tests/libsample/sometime.h @@ -82,6 +82,9 @@ public: bool operator==(const Time& other) const; bool operator!=(const Time& other) const; + // This cast operator must become an implicit conversion of Str. + operator Str() const; + private: int m_hour; int m_minute; |