diff options
author | miloyip@gmail.com <miloyip@gmail.com@c5894555-1306-4e8d-425f-1f6f381ee07c> | 2011-12-03 08:17:07 +0400 |
---|---|---|
committer | miloyip@gmail.com <miloyip@gmail.com@c5894555-1306-4e8d-425f-1f6f381ee07c> | 2011-12-03 08:17:07 +0400 |
commit | 55587d6f62016192bb04d9df840f68873a0ef50c (patch) | |
tree | c8939354e2b43012afd2a50c3c78d7767c3b691d /include/rapidjson/prettywriter.h | |
parent | 8bdcd7422789da5937b43a4bb649c2cffb3ff575 (diff) |
Added transcoding support in Writer and PrettyWriter
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@47 c5894555-1306-4e8d-425f-1f6f381ee07c
Diffstat (limited to 'include/rapidjson/prettywriter.h')
-rw-r--r-- | include/rapidjson/prettywriter.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/rapidjson/prettywriter.h b/include/rapidjson/prettywriter.h index 403daa52..6aba86b0 100644 --- a/include/rapidjson/prettywriter.h +++ b/include/rapidjson/prettywriter.h @@ -11,10 +11,10 @@ namespace rapidjson { \tparam Encoding Encoding of both source strings and output.
\tparam Allocator Type of allocator for allocating memory of stack.
*/
-template<typename Stream, typename Encoding = UTF8<>, typename Allocator = MemoryPoolAllocator<> >
-class PrettyWriter : public Writer<Stream, Encoding, Allocator> {
+template<typename Stream, typename SourceEncoding = UTF8<>, typename TargetEncoding = UTF8<>, typename Allocator = MemoryPoolAllocator<> >
+class PrettyWriter : public Writer<Stream, SourceEncoding, TargetEncoding, Allocator> {
public:
- typedef Writer<Stream, Encoding, Allocator> Base;
+ typedef Writer<Stream, SourceEncoding, TargetEncoding, Allocator> Base;
typedef typename Base::Ch Ch;
//! Constructor
|