summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slicer/slicer/modelPartsTypes.impl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/slicer/slicer/modelPartsTypes.impl.h b/slicer/slicer/modelPartsTypes.impl.h
index 9c141f7..3c29a5b 100644
--- a/slicer/slicer/modelPartsTypes.impl.h
+++ b/slicer/slicer/modelPartsTypes.impl.h
@@ -492,7 +492,7 @@ namespace Slicer {
BOOST_ASSERT(this->Model);
return ModelPartForComplexBase::getTypeId(
[this]() {
- if constexpr (std::is_base_of_v<Ice::Object, T>) {
+ if constexpr (requires { (*this->Model)->ice_id(); }) {
return (*this->Model)->ice_id();
}
else {