mirror of
https://github.com/boostorg/utility.git
synced 2025-08-03 06:44:37 +02:00
*** empty log message ***
[SVN r2628]
This commit is contained in:
17
include/boost/utility/chk_dbl_die.hpp
Normal file
17
include/boost/utility/chk_dbl_die.hpp
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
//object_tracked with DTOR check for double destruction (death)
|
||||||
|
#ifndef BOOST_DEBUG_UTILITY_CHK_DBL_DELETE_HPP_LJE20040129
|
||||||
|
#define BOOST_UTILITY_CHK_DBL_DELETE_HPP_LJE20040129
|
||||||
|
#include "boost/utility/object_tracked.hpp"
|
||||||
|
#include <boost/test/test_tools.hpp>
|
||||||
|
namespace utility
|
||||||
|
{
|
||||||
|
struct chk_dbl_die
|
||||||
|
: public object_tracked
|
||||||
|
{
|
||||||
|
~chk_dbl_die(void)
|
||||||
|
{
|
||||||
|
BOOST_CHECK(am_i_live());
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}//exit utility namespace
|
||||||
|
#endif
|
Reference in New Issue
Block a user