summaryrefslogtreecommitdiff
path: root/src/item.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-10 12:04:00 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-10 12:04:00 -0400
commita2bcfe4338801d1979ee859a3ce6cc289f80a5aa (patch)
treeb21a87e1356e6ed761b60845321898c02bb90423 /src/item.h
parent4da78bb8814ce89b04610fa52335673c0054f926 (diff)
downloadfork-ledger-a2bcfe4338801d1979ee859a3ce6cc289f80a5aa.tar.gz
fork-ledger-a2bcfe4338801d1979ee859a3ce6cc289f80a5aa.tar.bz2
fork-ledger-a2bcfe4338801d1979ee859a3ce6cc289f80a5aa.zip
Increase item_t's flags to 16-bit
Diffstat (limited to 'src/item.h')
-rw-r--r--src/item.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/item.h b/src/item.h
index 7045c875..92b29844 100644
--- a/src/item.h
+++ b/src/item.h
@@ -97,7 +97,7 @@ private:
#endif // HAVE_BOOST_SERIALIZATION
};
-class item_t : public supports_flags<>, public scope_t
+class item_t : public supports_flags<uint_least16_t>, public scope_t
{
public:
#define ITEM_NORMAL 0x00 // no flags at all, a basic posting
@@ -117,11 +117,11 @@ public:
optional<string_map> metadata;
item_t(flags_t _flags = ITEM_NORMAL, const optional<string>& _note = none)
- : supports_flags<>(_flags), _state(UNCLEARED), note(_note)
+ : supports_flags<uint_least16_t>(_flags), _state(UNCLEARED), note(_note)
{
TRACE_CTOR(item_t, "flags_t, const string&");
}
- item_t(const item_t& item) : supports_flags<>(), scope_t()
+ item_t(const item_t& item) : supports_flags<uint_least16_t>(), scope_t()
{
TRACE_CTOR(item_t, "copy");
copy_details(item);
@@ -204,7 +204,7 @@ private:
template<class Archive>
void serialize(Archive& ar, const unsigned int /* version */) {
- ar & boost::serialization::base_object<supports_flags<> >(*this);
+ ar & boost::serialization::base_object<supports_flags<uint_least16_t> >(*this);
ar & boost::serialization::base_object<scope_t>(*this);
ar & _state;
ar & _date;