From 1f9d9319acfff855fbb478913bb15db9fb9e444d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sun, 31 Dec 2023 20:45:21 +0100 Subject: [PATCH] Activate asserts also in release mode --- example/doc_map.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/example/doc_map.cpp b/example/doc_map.cpp index 4198304..3f07c93 100644 --- a/example/doc_map.cpp +++ b/example/doc_map.cpp @@ -15,14 +15,18 @@ #include #include #include + +#ifdef NDEBUG +#undef NDEBUG +#endif #include using namespace boost::intrusive; class MyClass : public set_base_hook<> - , public unordered_set_base_hook<> + , public unordered_set_base_hook<> { - public: +public: int first; explicit MyClass(int i) : first(i){} };