cms-sw/cmssw — pull request #1967 by wmtan (2014-01-08 20:36:34+00:00)
Title: Fix check for same type

This pull request fixes a bug in CMS ROOT6 specific code. The function TypeWithDict::pointerToBase() compared two types for equality by comparing the TypeWithDict pointers. This is a bug, because there can easily be more than one TypeWithDict object for the same type.
The fix is to compare the std::type_info (instead of TypeWithDict) for each of the two types, first by comparing the pointers, and, if the pointers are unequal, comparing the std::type_info's by value.
This fixes one framework unit test that was failing in the ROOT6 branch.