У меня есть проблема для вызова метода библиотеки «жвачка» в моей программе: < /p>
gum::BayesNet *myBayNet=new gum::BayesNet;
gum::DiscrereVariable* DV=new gum::DiscretizedVariable;
int main()
{
// error: invalid declaration
// of 'gum::BayesNet::add' & //forbids declaration of 'DV'
unsigned int gum::BayesNet::add(const (*DV) str)
{
return (*myBayNet).add(str);
}
}
< /code>
(см. Сообщение об ошибке в комментарии.) < /p>
Подробнее здесь: https://stackoverflow.com/questions/100 ... r-to-class