diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-08-13 12:04:07 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:17:11 -0300 |
commit | ba27bc0dd1beeb1f088a4b76395432a358d82c2c (patch) | |
tree | d025c830e672562bc055c3a646efc8f332d537d6 /tests/libsample/oddbool.h | |
parent | 91a2dbd2e84e653ba0e0b36f4c46bfc23014e29b (diff) |
Added test for implicit conversion with user's primitive type.
Diffstat (limited to 'tests/libsample/oddbool.h')
-rw-r--r-- | tests/libsample/oddbool.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/libsample/oddbool.h b/tests/libsample/oddbool.h index bbb4340e1..3cf06df09 100644 --- a/tests/libsample/oddbool.h +++ b/tests/libsample/oddbool.h @@ -49,6 +49,7 @@ class OddBoolUser { public: OddBoolUser() : m_oddbool(OddBool(false)) {} + OddBoolUser(const OddBool& oddBool) : m_oddbool(oddBool) {} virtual ~OddBoolUser() {} inline OddBool oddBool() { return m_oddbool; } @@ -64,6 +65,11 @@ public: return invertedOddBool(); } + static inline OddBool getOddBool(const OddBoolUser& oddBoolUser) + { + return oddBoolUser.m_oddbool; + } + private: OddBool m_oddbool; }; |