Page 1 of 1

vst3editor error: 'auto' not allowed in lambda parameter

Posted: Fri May 18, 2018 4:42 pm
by howardantares
I am getting this error in a plug-in I am updating to VST3 SDK 3.6.9 and VSTGUI 4.5 (with Xcode 9 in High Sierra) :

/SDKs/VST_SDK/VST3_SDK/vstgui4/vstgui/plugin-bindings/vst3editor.cpp:65:9: error: 'auto' not allowed in lambda parameter
[] (auto) { gUpdateHandlerInit.get ()->triggerDeferedUpdates (); }, 1000 / 30);
^~~~
I have no idea what that means, let alone how to fix it, especially since it's in the SDK, not my code. Anyone know the solution?

Thanks,
Howard

Re: vst3editor error: 'auto' not allowed in lambda parameter

Posted: Fri May 18, 2018 10:01 pm
by howardantares
Looks like changing the standard library usage from c++11 to c++14 resolves this issue. I do not know yet if that will be compatible with my other SDKs (such as AAX, ARA and PACE).