Is it possible to use SDL2 with smart pointers?
I have this line of code //std::unique_ptr<SDL_Window> _window_; // this is somewhere else... _window_ = std::make_unique<SDL_Window>(SDL_CreateWindow("SDL Window", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, _WIDTH_, _HEIGHT_, SDL_WINDOW_SHOWN)); it produces the following compiler error In file included from /usr/include/c++/6/memory:81:0, from /home/user/prj/src/main.cpp:4: /usr/include/c++/6/bits/unique_ptr.h: In instantiation of ‘typename std::_MakeUniq<_Tp>::__single_object std::make_unique(_Args&& ...) [with _Tp = SDL_Window; _Args = {SDL_Window*}; typename std::_MakeUniq<_Tp>::_