summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2014-08-26 14:14:02 -0500
committerJohn Wiegley <johnw@newartisans.com>2014-08-26 14:14:02 -0500
commit439923368b016ed49ae7723eb4d32fdae3e8e579 (patch)
tree81fa903cbd0d2501061614e2b8598735fbfba559
parentfa46f3442d2fa9e462c14564aecbfe34c16d18b2 (diff)
parent38557ee63273dcdef22b136c5f424802c7ff6e03 (diff)
downloadfork-ledger-439923368b016ed49ae7723eb4d32fdae3e8e579.tar.gz
fork-ledger-439923368b016ed49ae7723eb4d32fdae3e8e579.tar.bz2
fork-ledger-439923368b016ed49ae7723eb4d32fdae3e8e579.zip
Merge pull request #318 from joegallo/master
Compilation errors with boost 1.56
-rw-r--r--src/account.h2
-rw-r--r--src/item.h2
-rw-r--r--src/post.h2
-rw-r--r--src/ptree.cc2
-rw-r--r--src/times.h2
5 files changed, 5 insertions, 5 deletions
diff --git a/src/account.h b/src/account.h
index d1377c39..4a4041b7 100644
--- a/src/account.h
+++ b/src/account.h
@@ -261,7 +261,7 @@ public:
mutable optional<xdata_t> xdata_;
bool has_xdata() const {
- return xdata_;
+ return xdata_ != NULL;
}
void clear_xdata();
xdata_t& xdata() {
diff --git a/src/item.h b/src/item.h
index beb32a04..d194ac07 100644
--- a/src/item.h
+++ b/src/item.h
@@ -191,7 +191,7 @@ public:
static bool use_aux_date;
virtual bool has_date() const {
- return _date;
+ return _date != NULL;
}
virtual date_t date() const {
diff --git a/src/post.h b/src/post.h
index c2f77b32..c4fc3827 100644
--- a/src/post.h
+++ b/src/post.h
@@ -205,7 +205,7 @@ public:
mutable optional<xdata_t> xdata_;
bool has_xdata() const {
- return xdata_;
+ return xdata_ != NULL;
}
void clear_xdata() {
xdata_ = none;
diff --git a/src/ptree.cc b/src/ptree.cc
index 6609aed9..fa6a1db9 100644
--- a/src/ptree.cc
+++ b/src/ptree.cc
@@ -80,7 +80,7 @@ void format_ptree::flush()
switch (format) {
case FORMAT_XML:
- property_tree::xml_writer_settings<char> indented(' ', 2);
+ auto indented = property_tree::xml_writer_make_settings<std::string> (' ', 2);
property_tree::write_xml(out, pt, indented);
out << std::endl;
break;
diff --git a/src/times.h b/src/times.h
index 2a5b9277..d2f7bb19 100644
--- a/src/times.h
+++ b/src/times.h
@@ -568,7 +568,7 @@ public:
void stabilize(const optional<date_t>& date = none);
bool is_valid() const {
- return start;
+ return start != NULL;
}
/** Find the current or next period containing date. Returns false if