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 15:46:53 +02:00
parent 27dab5c12d
commit 404cb7e310
+1 -1
View File
@@ -176,7 +176,7 @@ public:
BReference(const BReference<const Type>& other)
:
fReference(other)
fReference(const_cast<Type*>(other.Get()))
{
}