From 8f5be9bf915eccb3ebc4308c53fd62a5bb6bbe3f Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 28 Dec 2012 13:50:02 +0100 Subject: [PATCH] BufferManager: registering buffers are front inserted --- src/buffer_manager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/buffer_manager.cc b/src/buffer_manager.cc index 764e1271..14e6f723 100644 --- a/src/buffer_manager.cc +++ b/src/buffer_manager.cc @@ -26,7 +26,7 @@ void BufferManager::register_buffer(Buffer& buffer) throw name_not_unique(); } - m_buffers.push_back(safe_ptr(&buffer)); + m_buffers.emplace(m_buffers.begin(), &buffer); } void BufferManager::unregister_buffer(Buffer& buffer)