in reply to Inline CPP function not found

As far as I can tell from Inline::CPP::grammar, Inline::CPP doesn't handle reference parameters, so it's probably skipping your function. Try using pointers instead.

EDIT: I'm wrong -- it does at least parse it, so while I'm pretty sure Inline::CPP is skipping it as something it can't handle, I'm not sure what the problem is.

Replies are listed 'Best First'.
Re^2: Inline CPP function not found
by markov (Scribe) on May 16, 2011 at 21:15 UTC
    It think the parser does understand it. In Inline/CPP/grammar.pm
    type1: TYPE star(s?) star: '*' | '&'
    So, if 'double *' is parsed, than 'double &' as well. Probably I do need to do something with typemaps or function rewrites. Would be nice if someone knows what.