summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-09-30 13:42:09 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2023-09-30 13:42:09 +0100
commit0501f2e909f77b3d4397c61d1a5fd398e3530c62 (patch)
tree9359f2a80aeb66c79672cf3537d278b29f532009
parentFix up all the little niggly warnings (diff)
downloadslicer-0501f2e909f77b3d4397c61d1a5fd398e3530c62.tar.bz2
slicer-0501f2e909f77b3d4397c61d1a5fd398e3530c62.tar.xz
slicer-0501f2e909f77b3d4397c61d1a5fd398e3530c62.zip
Use ice_id() whenever possible
-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 {