1 | initial version |
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!
2 | No.2 Revision |
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!
3 | No.3 Revision |
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()
{
Anyway, thanks a lot for your responses!