Ask Your Question

Revision history [back]

Sorry, <type> keyword got lost when preformatted. I found that the error was very very stupid - I forgot 'return model;' at the end of create_model() function. Very stupid typo :/ The code should have looked like this:

Ptr<statmodel> create_model() { Ptr<boost> model = Boost::create(); model->setBoostType(Boost::DISCRETE); }

int main() { Ptr<boost> model = create_model().dynamicCast<boost>(); return 0; }

Anyway, thanks a lot for your responses!

Sorry, <type> keyword got lost when preformatted. I found that the error was very very stupid - I forgot 'return model;' at the end of create_model() function. Very stupid typo :/ The code should have looked like this:

Ptr<statmodel> create_model() { Ptr<boost> model = Boost::create(); model->setBoostType(Boost::DISCRETE); }

int main() { Ptr<boost> model = create_model().dynamicCast<boost>(); return 0; }

Anyway, thanks a lot for your responses!

Sorry, <type> keyword got lost when preformatted. I found that the error was very very stupid - I forgot 'return model;' at the end of create_model() function. Very stupid typo :/ The code should have looked like this:

Ptr<statmodel>

Ptr<StatModel> create_model()
{
Ptr<boost> Ptr<Boost> model = Boost::create();
model->setBoostType(Boost::DISCRETE);
}

}

int main() { Ptr<boost> Ptr<Boost> model = create_model().dynamicCast<boost>(); create_model().dynamicCast<Boost>(); return 0; }

}

Anyway, thanks a lot for your responses!