Opened 15 years ago

Closed 15 years ago

#1104 closed Feature Requests (fixed)

Add BOOST_NO_TYPEID

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

Description

//  MACRO:         BOOST_NO_TYPEID
//  TITLE:         typeid unavailable
//  DESCRIPTION:   The compiler does not support typeid in this mode

#include <typeinfo>

namespace boost_no_typeid
{

int test()
{
   typeid(int);
   return 0;
}

}

Note that this is not the same as "no RTTI". RTTI only comes into play when typeid is used on an expression of a polymorphic type. Compilers may (and do) still support typeid in "no RTTI" mode.

Change History (2)

comment:1 by John Maddock, 15 years ago

Status: newassigned

Added to SVN trunk, will leave open till it's merged with 1.35 release branch (when we have one).

comment:2 by John Maddock, 15 years ago

Resolution: fixed
Status: assignedclosed

Now that we have a release branch and we know that most libs will be merged to it, I'm closing this one down as fixed.

Note: See TracTickets for help on using tickets.