[Boost-bugs] [Boost C++ Libraries] #9676: ptr_container without RTTI

Subject: [Boost-bugs] [Boost C++ Libraries] #9676: ptr_container without RTTI
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-02-17 12:03:39


#9676: ptr_container without RTTI
------------------------------+---------------------------
 Reporter: d.leinhaeuser@… | Owner: nesotto
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: ptr_container
  Version: Boost 1.55.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------
 ptr_container requires RTTI support only when compiled in debug mode.
 The reason for this seem to be a few assertions in `clone_allocator.hpp`
 and `detail/reversible_ptr_container.hpp`, which make use of `typeid`.

 It seems to me like these assertions should be surrounded by checks for
 `BOOST_NO_TYPEID` or something to that effect, so as to enable compilation
 in debug mode without RTTI.

 Steps to reproduce:
 Attempt to compile ptr_container in debug mode with RTTI support disabled.

 Expected result:
 Compilation finishes without error.

 Actual result:
 Compilation fails with errors in `clone_allocator.hpp` and
 `detail/reversible_ptr_container.hpp` regarding use of typeid when RTTI is
 disabled.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9676>
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:50:15 UTC