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

Unified Diff: Source/platform/animation/AnimationUtilities.h

Issue 813883002: replace COMPILE_ASSERT with static_assert in platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: final fixups Created 6 years 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
« no previous file with comments | « Source/platform/WebThread.cpp ('k') | Source/platform/exported/WebCryptoAlgorithm.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/animation/AnimationUtilities.h
diff --git a/Source/platform/animation/AnimationUtilities.h b/Source/platform/animation/AnimationUtilities.h
index 4d6b77e73d507dc72d3f94dbbc2d18b795981e8e..ca0ff2af7c414e4cd5f51cb3ec3214311994ac35 100644
--- a/Source/platform/animation/AnimationUtilities.h
+++ b/Source/platform/animation/AnimationUtilities.h
@@ -44,7 +44,7 @@ inline int blend(int from, int to, double progress)
template <typename T>
inline T blend(T from, T to, double progress)
{
- COMPILE_ASSERT(WTF::IsInteger<T>::value, BlendForUnsignedTypes);
+ static_assert(WTF::IsInteger<T>::value, "blend can only be used with integer types");
return clampTo<T>(round(to > from ? from + (to - from) * progress : from - (from - to) * progress));
}
« no previous file with comments | « Source/platform/WebThread.cpp ('k') | Source/platform/exported/WebCryptoAlgorithm.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698