mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-09-24 04:32:32 -04:00
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:
parent
306a7704e0
commit
ab0daa5ad7
@ -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
|
||||
// ////////////////////////////////
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user