]> git.sesse.net Git - casparcg/blobdiff - common/memory/page_locked_allocator.h
* Created custom decklink allocator for reducing memory footprint.
[casparcg] / common / memory / page_locked_allocator.h
index 44697f3a9ebed5638304d1dffa8c7e6ba2fd485a..789679d593b803d9c2789d21a698d4bce7f66150 100644 (file)
@@ -84,6 +84,8 @@ public:
        pointer           address(reference x) const { return &x; }\r
        const_pointer     address(const_reference x) const { return &x; }\r
        page_locked_allocator<T>&  operator=(const page_locked_allocator&) { return *this; }\r
+       bool                       operator!=(const page_locked_allocator&) const { return false; }\r
+       bool                       operator==(const page_locked_allocator&) const { return true; }\r
        void              construct(pointer p, const T& val) { new ((T*) p) T(val); }\r
        void              destroy(pointer p) { p->~T(); }\r
 \r