summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-08-06 12:10:43 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2023-08-06 12:10:43 +0100
commit520b0bbec3b825667093184909ce96be680e6f0f (patch)
tree28272f2ab3fea6bcc8b7fc58f2efe1b85c9995c8
parentany_ptr accepts refs and forward refs (diff)
downloadslicer-520b0bbec3b825667093184909ce96be680e6f0f.tar.bz2
slicer-520b0bbec3b825667093184909ce96be680e6f0f.tar.xz
slicer-520b0bbec3b825667093184909ce96be680e6f0f.zip
ModelPartForDictionary<T>::OnEachChild creates pair MP on stack
-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 2d2f7c8..5f5acf5 100644
--- a/slicer/slicer/modelPartsTypes.impl.h
+++ b/slicer/slicer/modelPartsTypes.impl.h
@@ -660,7 +660,7 @@ namespace Slicer {
{
BOOST_ASSERT(this->Model);
for (auto & pair : *this->Model) {
- ch(pairName, std::make_shared<ModelPartForStruct<typename T::value_type>>(&pair), nullptr);
+ ch(pairName, ModelPartForStruct<typename T::value_type>(&pair), nullptr);
}
}