Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-02-02 08:32:02


It turns out that the Intel compiler has the same (mis)behavior as MSVC in
that std::typeid()returns different objects for T, T const, T const
volatile, T const&, etc.

It would be great to have a config macro for this.

Also, as it turns out I needed the reference/cv-qualifications stripped in a
few places. Believe it or not, I have an implementation of type_id<T>()
which returns the correct result of typeid(T) on both of these compilers
(unless T is a cv-qualified array type, and I think that can be done but I
haven't figured it out yet). It's going in boost::python::detail unless
somebody says they want it moved up to boost::detail.

Regards,
Dave

===================================================
  David Abrahams, C++ library designer for hire
 resume: http://users.rcn.com/abrahams/resume.html

        C++ Booster (http://www.boost.org)
          email: david.abrahams_at_[hidden]
===================================================


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk