diff --git a/src/Platform/ScreenedApplication.h b/src/Platform/ScreenedApplication.h index dc962bdf9..4cf05406c 100644 --- a/src/Platform/ScreenedApplication.h +++ b/src/Platform/ScreenedApplication.h @@ -97,7 +97,11 @@ template class BasicScreenedApplication: public Application, explicit BasicScreenedApplication(const typename Application::Arguments& arguments, const typename Application::Configuration& configuration = Application::Configuration()); /** @copydoc Sdl2Application::Sdl2Application(const Arguments&, std::nullptr_t) */ + #ifndef CORRADE_GCC45_COMPATIBILITY explicit BasicScreenedApplication(const typename Application::Arguments& arguments, std::nullptr_t); + #else + explicit BasicScreenedApplication(const typename Application::Arguments& arguments, void*); + #endif /** * @brief Add screen to application diff --git a/src/Platform/ScreenedApplication.hpp b/src/Platform/ScreenedApplication.hpp index 2063c51fb..f91111fd7 100644 --- a/src/Platform/ScreenedApplication.hpp +++ b/src/Platform/ScreenedApplication.hpp @@ -43,7 +43,12 @@ template void BasicScreen::mouseMoveEvent(MouseM template BasicScreenedApplication::BasicScreenedApplication(const typename Application::Arguments& arguments, const typename Application::Configuration& configuration): Application(arguments, configuration) {} -template BasicScreenedApplication::BasicScreenedApplication(const typename Application::Arguments& arguments, std::nullptr_t): Application(arguments, nullptr) {} +#ifndef CORRADE_GCC45_COMPATIBILITY +template BasicScreenedApplication::BasicScreenedApplication(const typename Application::Arguments& arguments, std::nullptr_t): +#else +template BasicScreenedApplication::BasicScreenedApplication(const typename Application::Arguments& arguments, void*): +#endif + Application(arguments, nullptr) {} template BasicScreenedApplication::~BasicScreenedApplication() = default;