Opened 14 years ago

Closed 14 years ago

#2242 closed Feature Requests (fixed)

Autodetect BOOST_NO_TYPEID, BOOST_NO_RTTI for g++ 4.3 and above

Reported by: Peter Dimov Owned by: John Maddock
Milestone: Boost 1.37.0 Component: config
Version: Boost 1.36.0 Severity: Problem
Keywords: Cc:

Description

g++ 4.3 and above defines __GXX_RTTI when RTTI is on. Something like

#if __GNUC__ * 100 + __GNUC_MINOR__ >= 403
#ifndef __GXX_RTTI
#define BOOST_NO_TYPEID
#define BOOST_NO_RTTI
#endif
#endif

ought to work.

Change History (1)

comment:1 by John Maddock, 14 years ago

Resolution: fixed
Status: newclosed

Added.

Note: See TracTickets for help on using tickets.