Closed ghost closed 2 years ago
Apparently, it is already replaced in v2.0.0.* development. So, this patch is redundant and obsolete.
Exactly :-)
I need to release 2.0.0 ASAP
The upside with good old auto_ptr
is that I can compile cppcms::json
using C++Builder 6.
I will retain a copy of version 1 for a long while.
As we know,
std::auto_ptr
was deprecated in C++11 and fully removed in C++17. While it is still possible to build CppCMS without using C++17,std::auto_ptr
uses in the public part of API causing compilation errors if C++17 is a must. That's why, in the current form, there is no way to use CppCMS alongside C++17 header-only libraries.In order to fix this problem, we can replace
std::auto_ptr
withstd::unique_ptr
in all public header files (i.e., the files which are installed intoinclude/
dir). Then, we can proceed with replacement until the codebase can be compiled without any compilation errors.In this patch, following steps are followed:
std::auto_ptr
from public header files.