smasherprog / screen_capture_lite

cross platform screen/window capturing library
MIT License
616 stars 156 forks source link

Use atomic shared ptr instead of deprecated overload #119

Closed TopoIogist closed 1 year ago

TopoIogist commented 2 years ago

This removed the msvc warnings when compiling with language set to C++20 or newer.

TopoIogist commented 2 years ago

Seems like some compilers still don't like this.. Well..

smasherprog commented 2 years ago

Yeah looks like apple and clang still dont support this :(

smasherprog commented 2 years ago

Its a strange world with VS supports functionality that clang doesnt

Renardjojo commented 1 year ago

What about using #if defined(_WIN32) && defined(cplusplus) && cplusplus >= 202002L ?

smasherprog commented 1 year ago

Create a pr on it! lets check it out

Renardjojo commented 1 year ago

Pull request done here