remove auto_ptr compatibility

This does not build under < C++11. No need for auto_ptr.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-04-11 22:22:14 -07:00
parent 306a7704e0
commit ab0daa5ad7
No known key found for this signature in database
GPG Key ID: 36D31CFA845F0E3B
2 changed files with 0 additions and 8 deletions

View File

@ -44,11 +44,7 @@ static size_t const stackLimit_g =
namespace Json {
#if __cplusplus >= 201103L || (defined(_CPPLIB_VER) && _CPPLIB_VER >= 520)
using CharReaderPtr = std::unique_ptr<CharReader>;
#else
using CharReaderPtr = std::auto_ptr<CharReader>;
#endif
// Implementation of class Features
// ////////////////////////////////

View File

@ -34,11 +34,7 @@ using std::isfinite;
namespace Json {
#if __cplusplus >= 201103L || (defined(_CPPLIB_VER) && _CPPLIB_VER >= 520)
using StreamWriterPtr = std::unique_ptr<StreamWriter>;
#else
using StreamWriterPtr = std::auto_ptr<StreamWriter>;
#endif
String valueToString(LargestInt value) {
UIntToStringBuffer buffer;