#include <vector>
#include <set>
#include <map>
+#include <typeinfo> // for typeid
// CINT needs <algorithm> to work properly with <vector>
#include <algorithm>
template <class T>
inline bool is_exactly_a(const basic & obj)
{
- return obj.tinfo() == &T::tinfo_static;
+ return typeid(T) == typeid(obj);
}
} // namespace GiNaC