1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Added an OS X 10.5 compatible std::function replacement

This commit is contained in:
tpoole 2017-05-03 15:36:25 +01:00
parent db346fea6d
commit f4046909ab
20 changed files with 472 additions and 47 deletions

View file

@ -341,7 +341,6 @@ void JUCE_CALLTYPE Timer::callPendingTimersSynchronously()
TimerThread::instance->callTimersSynchronously();
}
#if JUCE_COMPILER_SUPPORTS_LAMBDAS
struct LambdaInvoker : private Timer
{
LambdaInvoker (int milliseconds, std::function<void()> f) : function (f)
@ -365,4 +364,3 @@ void JUCE_CALLTYPE Timer::callAfterDelay (int milliseconds, std::function<void()
{
new LambdaInvoker (milliseconds, f);
}
#endif