Index: Source/wtf/RefPtr.h |
diff --git a/Source/wtf/RefPtr.h b/Source/wtf/RefPtr.h |
index 424be1e99ad7aaa8302a93fbfb95d14fd30fbdc1..5b0ea80ca50452738cc18f9a247c814b02d3ffbf 100644 |
--- a/Source/wtf/RefPtr.h |
+++ b/Source/wtf/RefPtr.h |
@@ -111,7 +111,10 @@ namespace WTF { |
#if COMPILER_SUPPORTS(CXX_RVALUE_REFERENCES) |
template<typename T> inline RefPtr<T>& RefPtr<T>::operator=(RefPtr&& o) |
{ |
- swap(o); |
+ // FIXME: Instead of explicitly casting to RefPtr&& here, we should use std::move, but that requires us to |
+ // have a standard library that supports move semantics. |
+ RefPtr ptr = static_cast<RefPtr&&>(o); |
+ swap(ptr); |
return *this; |
} |
#endif |