Merge pull request #367 from Dani-Hub/issue-350-unique_ptr-2

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

resolves #350
This commit is contained in:
Christopher Dunn 2015-09-28 11:27:29 -05:00
commit 6992831c1c
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;