Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(950)

Unified Diff: sky/engine/wtf/Vector.h

Issue 719063002: Revert "Remove support for MSVC" (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sky/engine/wtf/Vector.h
diff --git a/sky/engine/wtf/Vector.h b/sky/engine/wtf/Vector.h
index 0912c2cebc7469b36e1d680028fdbf8b36d0dac0..4e5f263dd7f9d22d7feefa5bd0a96d31398d22bc 100644
--- a/sky/engine/wtf/Vector.h
+++ b/sky/engine/wtf/Vector.h
@@ -613,8 +613,10 @@ static const size_t kInitialVectorSize = WTF_VECTOR_INITIAL_SIZE;
template<size_t otherCapacity>
Vector& operator=(const Vector<T, otherCapacity, Allocator>&);
+#if COMPILER_SUPPORTS(CXX_RVALUE_REFERENCES)
Vector(Vector&&);
Vector& operator=(Vector&&);
+#endif
size_t size() const { return m_size; }
size_t capacity() const { return Base::capacity(); }
@@ -794,6 +796,7 @@ static const size_t kInitialVectorSize = WTF_VECTOR_INITIAL_SIZE;
return *this;
}
+#if COMPILER_SUPPORTS(CXX_RVALUE_REFERENCES)
template<typename T, size_t inlineCapacity, typename Allocator>
Vector<T, inlineCapacity, Allocator>::Vector(Vector<T, inlineCapacity, Allocator>&& other)
{
@@ -809,6 +812,7 @@ static const size_t kInitialVectorSize = WTF_VECTOR_INITIAL_SIZE;
swap(other);
return *this;
}
+#endif
template<typename T, size_t inlineCapacity, typename Allocator>
template<typename U>

Powered by Google App Engine
This is Rietveld 408576698