Skip to content
Snippets Groups Projects
Commit 56c0c719 authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

fix constants of type Void

May occur when not mapping a Void variable in the control system so it
is being optimised out.
parent 51cac77e
No related branches found
No related tags found
No related merge requests found
......@@ -411,7 +411,7 @@ namespace ChimeraTK {
/********************************************************************************************************************/
void VariableNetworkNode::setAppAccessorConstImplementation(const VariableNetworkNode& feeder) const {
callForTypeNoVoid(getValueType(), [&](auto t) {
callForType(getValueType(), [&](auto t) {
using UserType = decltype(t);
auto impl = boost::dynamic_pointer_cast<ChimeraTK::NDRegisterAccessor<UserType>>(
boost::make_shared<ConstantAccessor<UserType>>(feeder.getConstantValue<UserType>(), getNumberOfElements(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment