1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-01 03:10:06 +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

@ -297,7 +297,6 @@ int ModalComponentManager::runEventLoopForCurrentComponent()
#endif
//==============================================================================
#if JUCE_COMPILER_SUPPORTS_LAMBDAS
struct LambdaCallback : public ModalComponentManager::Callback
{
LambdaCallback (std::function<void(int)> fn) noexcept : function (fn) {}
@ -312,4 +311,3 @@ ModalComponentManager::Callback* ModalCallbackFunction::create (std::function<vo
{
return new LambdaCallback (f);
}
#endif