arrow_back_ios Back to List

Offload1205/2

Offload KB - offload-library

Old Content Alert

Please note that this is a old document archive and the will most likely be out-dated or superseded by various other products and is purely here for historical purposes.

This virtual or pointer call may fail due to missing suitable entry in domain (declared at %). This call requires an outer 'this' pointer but all domain entries where declared with 'this' .

A virtual function is called on an outer this pointer, but the domain only declares entries with local this pointers. The following example raises this warning:

struct str{    virtual void f();};void test(str* ptr){   __offload [str::f this] //domain with virtual method/local this   {       ptr->f(); // virtual call with an outer this pointer   }}

The virtual call ptr->f() inside the offload block will fail because there is no method without an outer this pointer (required for this call) of that signature in the domain. To fix this problem the domain should be declared as [str::f].