Opened 14 years ago

Closed 14 years ago

#2374 closed Bugs (fixed)

Some boost.intrusive files fail to compile with BOOST_ENABLE_ASSERT_HANDLER defined

Reported by: Phillip Howell <phowell@…> Owned by: Ion Gaztañaga
Milestone: Component: intrusive
Version: Boost 1.36.0 Severity: Problem
Keywords: Cc:

Description

Some boost.intrusive files fail to compile with BOOST_ENABLE_ASSERT_HANDLER defined. This appears to be due to the use of assert in those files instead of BOOST_ASSERT or one of the variants defined in boost/intrusive/detail/assert.hpp

Since it appears that boost.intrusive takes some pains to avoid direct use of BOOST_ASSERT, and it's unclear to me how these uses would shake out, I'm not attaching a patch. However, here's grep output:

avltree_algorithms.hpp:685:               assert(a);
avltree_algorithms.hpp:688:                  assert(NodeTraits::get_right(a));
avltree_algorithms.hpp:717:               assert(a);
avltree_algorithms.hpp:720:                  assert(NodeTraits::get_left(a));
avltree_algorithms.hpp:738:            assert(false);  // never reached
avltree_algorithms.hpp:787:            assert(false);  // never reached
avltree_algorithms.hpp:845:         assert(false); // never reached
avltree_algorithms.hpp:902:         assert(false);
pointer_plus_bits.hpp:64:      assert(0 == (std::size_t(p) & Mask));
pointer_plus_bits.hpp:73:      assert(c <= Mask);
sgtree.hpp:154:      assert(0);
sgtree_algorithms.hpp:686:               assert(tree_size == count(s));
splaytree_algorithms.hpp:873:            assert(0);

Change History (1)

comment:1 by Ion Gaztañaga, 14 years ago

Resolution: fixed
Status: newclosed

Fixed in Boost 1.37

Note: See TracTickets for help on using tickets.