On 02/07/2018 12:11 PM, Daniel Berlin wrote:


Note that the ABI is explicitly designed so that type identity can be done
by address comparison.

correct, but be aware that lots of dynamic objects seem to step outside the ABI by building shared objects with -Bsymbolic[1], or the equivalent visibility=hidden, or similar. So now the typeinfo comparison operator is something like
  return this->name == other->name
  || (this->name[0] != '*' && other->name[0] != '*'
      && !strcmp (this->name, other->name))

nathan
[1] I see -Bsymbolic-functions is now a thing, which would be better

--
Nathan Sidwell

Reply via email to