Index: src/handles.h |
diff --git a/src/handles.h b/src/handles.h |
index 017bfee3d02fe0ecfdf3afdf30e55bf91f80d8c2..5dc4a5ddda2c42be14287f69c58a135540dbebad 100644 |
--- a/src/handles.h |
+++ b/src/handles.h |
@@ -155,6 +155,13 @@ inline Handle<T> handle(T* t) { |
} |
+// Key comparison function for Map handles. |
+inline bool operator<(const Handle<Map>& lhs, const Handle<Map>& rhs) { |
+ // This is safe because maps don't move. |
+ return *lhs < *rhs; |
mvstanton
2014/05/02 06:34:16
Seems like I see MStarzinger cringe every time we
Benedikt Meurer
2014/05/02 06:39:15
Yeah... having some kind of ObjectTraits<T>::IsImm
|
+} |
+ |
+ |
class DeferredHandles; |
class HandleScopeImplementer; |