From b9b144357831e3984292cd7c938e511acaf66dae Mon Sep 17 00:00:00 2001 From: wangqr Date: Sun, 7 Jun 2020 12:24:26 -0400 Subject: [PATCH] Remove gcc 4.7 workaround --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 92f53fe8e..e2f8b5a7b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -147,8 +147,12 @@ bool AegisubApp::OnInit() { boost::filesystem::path::imbue(std::locale()); +#if defined(__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 8)) // Pointless `this` capture required due to http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51494 agi::dispatch::Init([this](agi::dispatch::Thunk f) { +#else + agi::dispatch::Init([](agi::dispatch::Thunk f) { +#endif auto evt = new ValueEvent(EVT_CALL_THUNK, -1, std::move(f)); wxTheApp->QueueEvent(evt); });