Opened 9 years ago

#9676 new Bugs

ptr_container without RTTI

Reported by: d.leinhaeuser@… Owned by: Thorsten Ottosen
Milestone: To Be Determined Component: ptr_container
Version: Boost 1.55.0 Severity: Problem
Keywords: Cc:

Description

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.

Change History (0)

Note: See TracTickets for help on using tickets.