[Boost-bugs] [Boost C++ Libraries] #2374: Some boost.intrusive files fail to compile with BOOST_ENABLE_ASSERT_HANDLER defined

Subject: [Boost-bugs] [Boost C++ Libraries] #2374: Some boost.intrusive files fail to compile with BOOST_ENABLE_ASSERT_HANDLER defined
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-09-30 21:23:10


#2374: Some boost.intrusive files fail to compile with BOOST_ENABLE_ASSERT_HANDLER
defined
------------------------------------------------+---------------------------
 Reporter: Phillip Howell <phowell_at_[hidden]> | Owner: igaztanaga
     Type: Bugs | Status: new
Milestone: | Component: intrusive
  Version: Boost 1.36.0 | Severity: Problem
 Keywords: |
------------------------------------------------+---------------------------
 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);
 }}}

-- 
Ticket URL: <http://svn.boost.org/trac/boost/ticket/2374>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:58 UTC