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 73f448d commit e66f1b0Copy full SHA for e66f1b0
offload/plugins-nextgen/common/include/PluginInterface.h
@@ -1287,7 +1287,7 @@ struct GenericPluginTy {
1287
return *Devices[DeviceId];
1288
}
1289
const GenericDeviceTy &getDevice(int32_t DeviceId) const {
1290
- return cast<const GenericDeviceTy>(getDevice(DeviceId));
+ return const_cast<GenericPluginTy *>(this)->getDevice(DeviceId);
1291
1292
1293
/// Get the number of active devices.
0 commit comments