Code Export: FrameLib_Length

Issue #58 resolved
Owen Green created an issue

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, &parameters, 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)

  1. Alex Harker repo owner

    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.

  2. Alex Harker repo owner

    Excellent - I will try to test with some nested templates with function parameters and template parameters at some unspecified point in the future

  3. Log in to comment