From b349541cdc34d7f0d8a2f44e4504ccc45a133033 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqu=C3=ADn=20M=2E=20L=C3=B3pez=20Mu=C3=B1oz?= Date: Mon, 14 Jun 2004 15:55:21 +0000 Subject: [PATCH] an invariant check was out of place [SVN r23096] --- include/boost/multi_index_container.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/boost/multi_index_container.hpp b/include/boost/multi_index_container.hpp index 4018df4..8a43262 100644 --- a/include/boost/multi_index_container.hpp +++ b/include/boost/multi_index_container.hpp @@ -187,12 +187,17 @@ public: super(x), node_count(0) { - BOOST_MULTI_INDEX_CHECK_INVARIANT; copy_map_type map(bfm_allocator::member,x.size(),x.header(),header()); for(const_iterator it=x.begin();it!=x.end();++it)map.clone(it.get_node()); super::copy_(x,map); map.release(); node_count=x.size(); + + /* Not until this point are the indices required to be consistent, + * hence the position of the invariant checker. + */ + + BOOST_MULTI_INDEX_CHECK_INVARIANT; } ~multi_index_container()