diff options
-rw-r--r-- | vespalib/src/vespa/vespalib/stllike/allocator.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vespalib/src/vespa/vespalib/stllike/allocator.h b/vespalib/src/vespa/vespalib/stllike/allocator.h index 3d8c2f03154..efe885f5c96 100644 --- a/vespalib/src/vespa/vespalib/stllike/allocator.h +++ b/vespalib/src/vespa/vespalib/stllike/allocator.h @@ -23,7 +23,7 @@ public: void deallocate(T * p, std::size_t n) { _allocator->free(p, n*sizeof(T)); } - alloc::MemoryAllocator * allocator() const { return _allocator; } + const alloc::MemoryAllocator * allocator() const { return _allocator; } private: const alloc::MemoryAllocator * _allocator; }; |