From 34c599246c7e25194bce4157e166b9bead2a1795 Mon Sep 17 00:00:00 2001 From: Marcelo Lira Date: Mon, 1 Mar 2010 14:03:56 -0300 Subject: Adds unit test for implicit conversion defined by a conversion operator. Reviewed by Hugo Parente --- tests/libsample/sometime.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/libsample/sometime.h') 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; -- cgit v1.2.3