mirror of
https://github.com/boostorg/intrusive.git
synced 2025-08-02 14:04:36 +02:00
Activate asserts also in release mode
This commit is contained in:
@@ -15,14 +15,18 @@
|
|||||||
#include <boost/intrusive/set.hpp>
|
#include <boost/intrusive/set.hpp>
|
||||||
#include <boost/intrusive/unordered_set.hpp>
|
#include <boost/intrusive/unordered_set.hpp>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#ifdef NDEBUG
|
||||||
|
#undef NDEBUG
|
||||||
|
#endif
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
using namespace boost::intrusive;
|
using namespace boost::intrusive;
|
||||||
|
|
||||||
class MyClass : public set_base_hook<>
|
class MyClass : public set_base_hook<>
|
||||||
, public unordered_set_base_hook<>
|
, public unordered_set_base_hook<>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
int first;
|
int first;
|
||||||
explicit MyClass(int i) : first(i){}
|
explicit MyClass(int i) : first(i){}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user