You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generated C++ devices have an updateUsageState() method that is meant to be called after an allocation or deallocation. The default Device_impl::updateUsageState() is not declared as virtual (Device_impl.h#149), so allocateCapacity() and deallocateCapacity() only call the empty base version, not the derived class implementation. As a result, custom non-FEI devices have to either override allocateCapacity() and deallocateCapacity() or otherwise change the device state.
This does not affect C++ FEI devices, which have a different, non-empty (and virtual) updateUsageState().
The text was updated successfully, but these errors were encountered:
Generated C++ devices have an
updateUsageState()
method that is meant to be called after an allocation or deallocation. The defaultDevice_impl::updateUsageState()
is not declared asvirtual
(Device_impl.h#149), soallocateCapacity()
anddeallocateCapacity()
only call the empty base version, not the derived class implementation. As a result, custom non-FEI devices have to either overrideallocateCapacity()
anddeallocateCapacity()
or otherwise change the device state.This does not affect C++ FEI devices, which have a different, non-empty (and virtual)
updateUsageState()
.The text was updated successfully, but these errors were encountered: