No appropriate default constructor available for std::unique_ptr
问题 This is a continuation of my previous post. Since it has already been closed I decided to make a new post. I removed half of the code to make it more readable. Some of the posts I read: Smart pointers with SDL Is it possible to use SDL2 with smart pointers? Couple of questions about SDL_Window and unique_ptr class cGraphics { public: // Creator functions std::unique_ptr<SDL_Window, decltype(&SDL_DestroyWindow)> Create_Window(int xWin, int yWin); // ctor & dtor cGraphics() : m_Window(nullptr,