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

Unified Diff: Source/platform/heap/Visitor.h

Issue 429793003: Fix template bugs that prevent rolling gtest DEPS in Chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 months 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/graphics/DeferredImageDecoderTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/Visitor.h
diff --git a/Source/platform/heap/Visitor.h b/Source/platform/heap/Visitor.h
index ed9bb1256b950271dafaead45dfcaa11781408cb..7a701fc38f7ad9416b1c05669ead56532ea3fc4c 100644
--- a/Source/platform/heap/Visitor.h
+++ b/Source/platform/heap/Visitor.h
@@ -139,12 +139,16 @@ public:
static const bool value = false;
};
+template <typename T> const bool NeedsAdjustAndMark<T, true>::value;
Ken Russell (switch to Gerrit) 2014/07/30 22:21:29 Why is this out-of-line definition needed? Will th
Nico 2014/07/30 22:26:02 Yes, that seems wrong.
Nick Bray (chromium) 2014/07/30 22:33:45 It isn't technically "out-of-line" because the inl
+
template<typename T>
class NeedsAdjustAndMark<T, false> {
public:
static const bool value = WTF::IsSubclass<typename WTF::RemoveConst<T>::Type, GarbageCollectedMixin>::value;
};
+template <typename T> const bool NeedsAdjustAndMark<T, false>::value;
+
template<typename T, bool = NeedsAdjustAndMark<T>::value> class DefaultTraceTrait;
// The TraceTrait is used to specify how to mark an object pointer and
« no previous file with comments | « Source/platform/graphics/DeferredImageDecoderTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698