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

Unified Diff: sky/engine/platform/Length.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/platform/Length.h
diff --git a/sky/engine/platform/Length.h b/sky/engine/platform/Length.h
index a9252842986aec48c8a97b3e901e1546f7943fcc..5277fb21d43733dcc0dee943998b3ae00d637cdb 100644
--- a/sky/engine/platform/Length.h
+++ b/sky/engine/platform/Length.h
@@ -120,6 +120,7 @@ public:
return *this;
}
+#if COMPILER_SUPPORTS(CXX_RVALUE_REFERENCES)
Length(Length&& length)
{
memcpy(this, &length, sizeof(Length));
@@ -147,6 +148,7 @@ public:
return *this;
}
+#endif
~Length()
{

Powered by Google App Engine
This is Rietveld 408576698