Code Export: FrameLib_Length
Issue #58
resolved
On export, FrameLib_Length gets rendered in the C++ as
new FrameLib_Expand<FrameLib_Vector<&double statLength<double const*>double const*, unsigned long, true> >(context, ¶meters, mProxy, 1);
Which causes the compiler to say
Parse Issue
Expected '(' for function-style cast or type construction
Semantic Issue
Too many template arguments for class template 'FrameLib_Expand'
Workaround is to replace all that with
FrameLib_Expand<FrameLib_Length>
Comments (3)
-
repo owner -
reporter Yes, generated code for median filter shenanigans compiles now.
-
repo owner - changed status to resolved
Excellent - I will try to test with some nested templates with function parameters and template parameters at some unspecified point in the future
- Log in to comment
Can you pull and check again? The process of removing all the excess is a bit of a pain, but I think I have it down now. In theory it should even resolve situations with significant nesting like that, but that requires further testing with dummy cases.
For now it would be good to confirm that this works for relatively straightforward cases such as this one.