Skip to content

Commit 4d2337d

Browse files
author
Christopher Dawes
committed
support for sensible template defaults for backward compatability
1 parent d57c64c commit 4d2337d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/json/reader_declaration.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ class JSON_API Reader {
251251

252252
/** Interface for reading JSON from a char array.
253253
*/
254-
template<typename _Traits, typename _Alloc>
254+
template<typename _Traits JSONCPP_DEFAULT_CHAR_TRAITS, typename _Alloc JSONCPP_DEFAULT_ALLOCATOR>
255255
class JSON_API CharReader {
256256
public:
257257
virtual ~CharReader() {}
@@ -298,7 +298,7 @@ class JSON_API CharReader {
298298
bool ok = parseFromStream(builder, std::cin, &value, &errs);
299299
\endcode
300300
*/
301-
template<typename _Traits, typename _Alloc>
301+
template<typename _Traits JSONCPP_DEFAULT_CHAR_TRAITS, typename _Alloc JSONCPP_DEFAULT_ALLOCATOR>
302302
class JSON_API CharReaderBuilder : public CharReader<_Traits, _Alloc>::Factory {
303303
public:
304304
// Note: We use a Json::Value<_Traits, _Alloc> so that we can add data-members to this class

0 commit comments

Comments
 (0)