We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c753ef commit 34dd9ddCopy full SHA for 34dd9dd
offload/plugins-nextgen/common/include/PluginInterface.h
@@ -1295,7 +1295,7 @@ struct GenericPluginTy {
1295
return *Devices[DeviceId];
1296
}
1297
const GenericDeviceTy &getDevice(int32_t DeviceId) const {
1298
- return cast<const GenericDeviceTy>(getDevice(DeviceId));
+ return const_cast<GenericPluginTy *>(this)->getDevice(DeviceId);
1299
1300
1301
/// Get the number of active devices.
0 commit comments