BReference: missing const cast when building a BReference<const>

* The internal BReference is on a non-const object so it can increment
and decrement the reference count, so we need to cast the const away.
This commit is contained in:
Adrien Destugues 2015-06-14 11:02:41 +02:00
parent 27dab5c12d
commit 404cb7e310

View File

@ -176,7 +176,7 @@ public:
BReference(const BReference<const Type>& other)
:
fReference(other)
fReference(const_cast<Type*>(other.Get()))
{
}