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

added an assert for safety

parent cd8d3b13
No related branches found
No related tags found
No related merge requests found
......@@ -221,6 +221,7 @@ namespace ChimeraTK {
template<typename UserType>
mtca4u::NDRegisterAccessorBridge<UserType>& VariableNetworkNode::getAppAccessor() const {
assert(typeid(UserType) == getValueType());
assert(pdata->type == NodeType::Application);
auto accessor = dynamic_cast<mtca4u::NDRegisterAccessorBridge<UserType>*>(pdata->appNode);
assert(accessor != nullptr);
return *accessor;
......
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