|
|
@@ -17,8 +17,10 @@ namespace json { namespace binder {
|
|
|
virtual void parse(T& val, char const*& data, parser::options) const override {
|
|
|
if (!strncmp(data, "true", 4)) {
|
|
|
val.*ptr = true;
|
|
|
+ data += 4;
|
|
|
} else if (!strncmp(data, "false", 5)) {
|
|
|
val.*ptr = false;
|
|
|
+ data += 5;
|
|
|
} else {
|
|
|
throw json::malformed_json_exception("Expected a boolean type here");
|
|
|
}
|