From 9ea30ca34e58e37930e47cea276a087d67b92ad4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sat, 6 Jun 2026 00:33:05 +0200 Subject: [PATCH] Protect example from <= C++11 --- example/doc_hub_basic.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/example/doc_hub_basic.cpp b/example/doc_hub_basic.cpp index 6cfb544..60675b8 100644 --- a/example/doc_hub_basic.cpp +++ b/example/doc_hub_basic.cpp @@ -6,6 +6,14 @@ * http://www.boost.org/LICENSE_1_0.txt) */ +#include + +#if BOOST_CXX_VERSION < 201103L + +int main() { return 0; } + +#else + #include #ifdef NDEBUG # undef NDEBUG @@ -29,3 +37,5 @@ int main() for(int i = 200; i < 10000; ++i) h.insert(i); assert(*it == 100); // iterator still valid } + +#endif