vayerx / shadowgrounds

Shadowgrounds and Shadowgrounds Survivor games
Other
53 stars 18 forks source link

Explicitly convert shared_ptr to bool for C++11 compatibility #24

Closed strycore closed 7 years ago

strycore commented 7 years ago

On current systems with C++11, the engine fails to build as shared_ptr can no longer be implicitly converted to bool. (See: https://stackoverflow.com/questions/7580009/gcc-error-cannot-convert-const-shared-ptr-to-bool-in-return )