Skip to content
Snippets Groups Projects
Commit 775d6c24 authored by t.knopff's avatar t.knopff
Browse files

Add assert to InstrumentItem::setBackgroundType

parent 51a128ef
No related branches found
No related tags found
1 merge request!99Refactor model: JobItem
......@@ -174,6 +174,9 @@ public:
template <typename T>
T* InstrumentItem::setBackgroundType()
{
static_assert(std::is_base_of<BackgroundItem,T>::value,
"Class must be derived from BackgroundItem");
return setGroupPropertyType<T>(P_BACKGROUND);
}
......
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