__cplusplus value should not be used to decide for std::unique_ptr #350:

In addition to the C++ language version define __cplusplus also check _CPPLIB_VER for better Dinkumware support.
This commit is contained in:
drgler 2015-09-06 16:13:06 +02:00
parent 979cbec237
commit 7e4875a239
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ static int stackDepth_g = 0; // see readValue()
namespace Json {
#if __cplusplus >= 201103L
#if __cplusplus >= 201103L || (defined(_CPPLIB_VER) && _CPPLIB_VER >= 520)
typedef std::unique_ptr<CharReader> CharReaderPtr;
#else
typedef std::auto_ptr<CharReader> CharReaderPtr;

View File

@ -54,7 +54,7 @@
namespace Json {
#if __cplusplus >= 201103L
#if __cplusplus >= 201103L || (defined(_CPPLIB_VER) && _CPPLIB_VER >= 520)
typedef std::unique_ptr<StreamWriter> StreamWriterPtr;
#else
typedef std::auto_ptr<StreamWriter> StreamWriterPtr;