Protect example from <= C++11

This commit is contained in:
Ion Gaztañaga
2026-06-06 00:33:05 +02:00
parent 050cf8d856
commit 9ea30ca34e
+10
View File
@@ -6,6 +6,14 @@
* http://www.boost.org/LICENSE_1_0.txt)
*/
#include <boost/config.hpp>
#if BOOST_CXX_VERSION < 201103L
int main() { return 0; }
#else
#include <boost/container/hub.hpp>
#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