Commit c5dbdfad authored by David Thompson's avatar David Thompson
Browse files

WIP: More broken attempts to make deserializing arcs work.

parent fc7d5387
......@@ -98,7 +98,7 @@ inline typename std::enable_if<I != std::tuple_size<Tuple>::value, void>::type d
}
auto& arcEntry(resource->arcs().template get<ArcType>());
*/
std::vector<smtk::WeakReferenceWrapper<typename ArcType::ToType>> toNodes;
std::vector<std::reference_wrapper<typename ArcType::ToType>> toNodes;
for (const auto jarc : *it)
{
toNodes.clear();
......@@ -113,8 +113,8 @@ inline typename std::enable_if<I != std::tuple_size<Tuple>::value, void>::type d
auto toNode = std::dynamic_pointer_cast<typename ArcType::ToType>(resource->find(toId));
if (toNode)
{
std::weak_ptr<typename ArcType::ToType> weakRef(toNode);
toNodes.push_back(weakRef);
// std::weak_ptr<typename ArcType::ToType> weakRef(toNode);
toNodes.push_back(std::ref(*toNode));
}
}
fromNode->template set<ArcType>(toNodes.begin(), toNodes.end());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment