macOs build fix

This commit is contained in:
xenakios
2019-02-28 23:39:39 +02:00
parent ae8a5e44c8
commit ba8b45f7f4
2 changed files with 8 additions and 3 deletions

View File

@ -378,10 +378,15 @@ private:
double m_sr = 0.0;
};
namespace XenUtils
{
template<typename T, typename... Args>
inline std::unique_ptr<T> makeAddAndMakeVisible(Component& parent, Args&&... args)
{
auto temp = std::make_unique<T>(args...);
parent.addAndMakeVisible(temp.get());
return std::move(temp);
}
}
}