Build error with boost and latest xcode

in juce_CompilerSupport.h

better use std::foward instead of plain forward in make_unique
otherwise I have an ambiguous call because it hesitate with the one from boost that is included in my code.

Thanks !

What warning are you getting exactly? I’d have expected it to be fine as the method is wrapped in a namespace std block…

/Users/otristan/code/juce/modules/juce_core/system/juce_CompilerSupport.h:120:38: error: call to 'forward' is ambiguous

        return unique_ptr<T> (new T (forward<Args> (args)...));


/Users/otristan/code/Falcon/ui/Editors.cpp:11810:37: note: in instantiation of function template specialization 'std::make_unique<DrumFilterPopupMenuCustomComponent, boost::shared_ptr<juce::Drawable> &>' requested here

        m.addCustomItem(i + 1, std::make_unique<DrumFilterPopupMenuCustomComponent>(mDrawables[i]));

The fact that I use a boost::shared_ptr probably give the compiler a hard time figuring which to choose.

Interesting, thanks! I’ve added this in 9561732.

Thanks !