Skip to content
Snippets Groups Projects
Commit caa1df87 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Add a comment

parent f03bbda2
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ void Problem::setup()
ProblemPtr Problem::create(FrameStructure _frame_structure)
{
ProblemPtr p(new Problem(_frame_structure));
ProblemPtr p(new Problem(_frame_structure)); // We use `new` and not `make_shared` since the Problem constructor is private and cannot be passes to `make_shared`.
p->setup();
return p->shared_from_this();
}
......
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