00001 #ifndef STATIC_CONTIANER_TEST_DEL_COUNTER_H 00002 00003 #define STATIC_CONTIANER_TEST_DEL_COUNTER_H 00004 00005 #include "static_container/integer.h" 00006 #include <boost/assert.hpp> 00007 00008 namespace static_container { 00009 namespace test { 00011 struct del_counter { 00012 size_type* counter; 00013 public: 00014 del_counter( size_type& count ) : counter( &count ) {} 00015 ~del_counter() { 00016 BOOST_ASSERT( 0 != counter ); 00017 ++( *counter ); 00018 } 00019 }; 00020 } 00021 } 00022 00023 #endif