Skip to content

Deprecate direct access to queryInterface

This MR deprecates direct invocations of queryInterface and implements some related fixes:

  • fix implementations of implements::queryInterface and extends::queryInterface to properly delegate to IInterface::i_cast (meant to be the place where specializations can implement delegations of interfaces, see !1766 (7836d905))
  • drop overrides of queryInterface as they can be replaced by overrides of i_cast
  • replace invocations of queryInterface with SmartIF, IInterface::cast or IInterface::i_cast

As bonuses

  • fix a minor incoherence in a dummy implementation of queryInterface in a test
  • deprecate isValidInterface and stop using it

Closes #371 (closed)

Merge request reports

Loading