Add conversion operator to the BReference class.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37762 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler 2010-07-26 19:18:56 +00:00
parent b085f93bcd
commit a28bf6c79d
1 changed files with 5 additions and 0 deletions

View File

@ -119,6 +119,11 @@ public:
return fObject;
}
operator Type*() const
{
return fObject;
}
BReference& operator=(const BReference<Type>& other)
{
SetTo(other.fObject);