mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-10-29 12:27:59 +01:00
Demonstrate CRTP in SAX example
Closes: https://github.com/miloyip/rapidjson/issues/142
This commit is contained in:
@@ -17,7 +17,8 @@ RAPIDJSON_DIAG_PUSH
|
||||
RAPIDJSON_DIAG_OFF(effc++)
|
||||
#endif
|
||||
|
||||
struct MessageHandler : public BaseReaderHandler<> {
|
||||
struct MessageHandler
|
||||
: public BaseReaderHandler<UTF8<>, MessageHandler> {
|
||||
MessageHandler() : messages_(), state_(kExpectObjectStart), name_() {}
|
||||
|
||||
bool StartObject() {
|
||||
|
||||
Reference in New Issue
Block a user