¡@

Home 

c++ Programming Glossary: deletesurface

Using custom deleter with std::shared_ptr

http://stackoverflow.com/questions/12340810/using-custom-deleter-with-stdshared-ptr

by that information I tried the following function void DeleteSurface SDL_Surface surface std cout Deleting surface n SDL_FreeSurface.. like class Game public various functions private void DeleteSurface SDL_Surface surface bool CacheImages std vector std shared_ptr.. variables and other functions with the implementation of DeleteSurface as above and the implementation of CacheImages as bool CacheImages..