diff --git a/examples/common/sdl_input_grabber.cpp b/examples/common/sdl_input_grabber.cpp
index fa749553954cf659e7fde918fe8fecf494c05e6c..7932fd2d7a3c38f5a2be0c8d5a7ca401a37ffd7d 100644
--- a/examples/common/sdl_input_grabber.cpp
+++ b/examples/common/sdl_input_grabber.cpp
@@ -8,6 +8,11 @@ sdl_input_grabber::sdl_input_grabber() :
 	simple::sdlcore::utils::throw_error(window.get());
 }
 
+void sdl_input_grabber::sdl_window_del::operator()(SDL_Window * w) noexcept
+{
+	SDL_DestroyWindow(w);
+}
+
 void sdl_input_grabber::grab() noexcept
 {
 	SDL_SetWindowGrab(window.get(), SDL_TRUE);
diff --git a/examples/common/sdl_input_grabber.h b/examples/common/sdl_input_grabber.h
index 24411d26b92cde06313fc5a5089f8dde4dc3921a..8fec4fb8caf6dbcd2653b09ed9a80ce0ed0de8f1 100644
--- a/examples/common/sdl_input_grabber.h
+++ b/examples/common/sdl_input_grabber.h
@@ -9,10 +9,7 @@ class sdl_input_grabber
 {
 	struct sdl_window_del
 	{
-		void operator()(SDL_Window * w) noexcept
-		{
-			SDL_DestroyWindow(w);
-		}
+		void operator()(SDL_Window*) noexcept;
 	};
 
 	simple::sdlcore::initializer video_init;