diff options
author | randomdan <randomdan@localhost> | 2011-11-02 16:39:12 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2011-11-02 16:39:12 +0000 |
commit | ff8b64b23774355d131e95c29f263878c3993432 (patch) | |
tree | a33de1084a8f2e9b04a4111905df6d249fabed65 /project2/json/conversion.h | |
parent | Finally sort the stupid names problem in the XML lib and remove xmlMemCache f... (diff) | |
download | project2-ff8b64b23774355d131e95c29f263878c3993432.tar.bz2 project2-ff8b64b23774355d131e95c29f263878c3993432.tar.xz project2-ff8b64b23774355d131e95c29f263878c3993432.zip |
Make many things use variables instead of preread values
Add support for a Boolean type
Fix flow error in exception handling
Diffstat (limited to 'project2/json/conversion.h')
-rw-r--r-- | project2/json/conversion.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/project2/json/conversion.h b/project2/json/conversion.h index acd22fb..31bfc8c 100644 --- a/project2/json/conversion.h +++ b/project2/json/conversion.h @@ -8,6 +8,7 @@ class Project2ToJson : public boost::static_visitor<json::Value> { json::Value operator()(const boost::posix_time::ptime & i) const; json::Value operator()(const Null & c) const; json::Value operator()(const Glib::ustring & c) const; + json::Value operator()(const Boolean & c) const; template <class Numeric> json::Value operator()(const Numeric & i) const { return boost::numeric_cast<json::Number>(i); @@ -16,7 +17,6 @@ class Project2ToJson : public boost::static_visitor<json::Value> { class JsonToProject2 : public boost::static_visitor<VariableType> { public: - VariableType operator()(const json::Boolean &) const; VariableType operator()(const json::Object &) const; VariableType operator()(const json::Array &) const; template <class Copyable> |