Skip to content

Commit 1b7da41

Browse files
authored
C++11 : Use using instead of typedef
C++11 type alias.
1 parent 264c3ed commit 1b7da41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib_json/json_reader.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ static size_t const stackLimit_g = JSONCPP_DEPRECATED_STACK_LIMIT; // see readVa
5555
namespace Json {
5656

5757
#if __cplusplus >= 201103L || (defined(_CPPLIB_VER) && _CPPLIB_VER >= 520)
58-
typedef std::unique_ptr<CharReader> CharReaderPtr;
58+
using CharReaderPtr = std::unique_ptr<CharReader>;
5959
#else
60-
typedef std::auto_ptr<CharReader> CharReaderPtr;
60+
using CharReaderPtr = std::auto_ptr<CharReader>;
6161
#endif
6262

6363
// Implementation of class Features

0 commit comments

Comments
 (0)