mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Introjucer: added workaround to make it compile on VS 2012.
This commit is contained in:
parent
87181a6947
commit
30cc5dcb76
1 changed files with 14 additions and 0 deletions
|
|
@ -426,12 +426,26 @@ private:
|
|||
{
|
||||
GradleObject (const String& nm) : name (nm) {}
|
||||
|
||||
#if JUCE_COMPILER_SUPPORTS_VARIADIC_TEMPLATES
|
||||
template <typename GradleType, typename... Args>
|
||||
void add (Args... args)
|
||||
{
|
||||
children.add (new GradleType (args...));
|
||||
// Note: can't use std::forward because it doesn't compile for OS X 10.8
|
||||
}
|
||||
#else // Remove this workaround once we drop VS2012 support!
|
||||
template <typename GradleType, typename Arg1>
|
||||
void add (Arg1 arg1)
|
||||
{
|
||||
children.add (new GradleType (arg1));
|
||||
}
|
||||
|
||||
template <typename GradleType, typename Arg1, typename Arg2>
|
||||
void add (Arg1 arg1, Arg2 arg2)
|
||||
{
|
||||
children.add (new GradleType (arg1, arg2));
|
||||
}
|
||||
#endif
|
||||
|
||||
void addChildObject (GradleObject* objectToAdd) noexcept
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue