Reflex Type from typeinfo

From: Nathaniel Tagg <tagg_at_minos.phy.tufts.edu>
Date: Fri, 10 Aug 2007 16:22:26 -0400


Hi Talkers,

I've recently been trying to use the Reflex library instead of the rootcint. However, after building source code and linking in dictonaries with genreflex, (under Gaudi), I find that the following code snippet returns null strings:

std::string SomeBaseClass::name() const
{
  return ROOT::Reflex::Type::ByTypeInfo(typeid(*this)).Name(); }

The API documentation is not very clear, but I would have expected this to work.

In the meantime, I'm using:

        typeid(*this).name() + 2
which works under GCC, but is platform-dependent, so not a really good long-term solution.

Any advice?

Thanks,
Nathaniel Received on Fri Aug 10 2007 - 22:22:36 CEST

This archive was generated by hypermail 2.2.0 : Sat Aug 11 2007 - 17:50:02 CEST