Lawo / ember-plus

Ember+ control protocol - Slick and free for all!
https://github.com/Lawo/ember-plus/wiki
Boost Software License 1.0
109 stars 41 forks source link

auto_ptr is deprecated in C++11 and removed from C++14 onwards #113

Open mikatammi opened 2 years ago

mikatammi commented 2 years ago

When trying to build Ember C++-library with C++14 or C++17 (or newer) standard enabled, the build fails with error telling auto_ptr isn't available, since it was removed starting from C++14.

include/ember/dom/impl/DomReader.ipp:41:14: error: no member named 'auto_ptr' in namespace 'std'

Possible fix would be to just replace the std::auto_ptr with std::unique_ptr, maybe using #ifdef-clauses that check the C++ standard version, and everything would just work from C++14 onwards.