Current genode release

Christian Helmuth christian.helmuth at ...1...
Sat Jun 4 22:59:15 CEST 2011


Hi,

please refer to the paragraph about "Casting capability types" in the
release notes for 11.05. These state:

  For typed capabilities, the same type conversion rules apply as for
  pointers. In fact, a typed capability pretty much resembles a typed
  pointer, pointing to a remote object. Hence, assigning a specialized
  capability (e.g., Capability<Input::Session>) to a base-typed
  capability (e.g., Capability<Session>) is always valid. For the
  opposite case, a static cast is needed. For capabilities, this cast
  is supported by

  static_cap_cast<INTERFACE>(cap)

HTH
-- 
Christian Helmuth
Genode Labs

http://www.genode-labs.com/ · http://genode.org/ · /ˈdʒiː.nəʊd/

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth




More information about the users mailing list