summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/amount.h2
-rw-r--r--src/flags.h3
-rw-r--r--src/pstream.h4
3 files changed, 8 insertions, 1 deletions
diff --git a/src/amount.h b/src/amount.h
index 8d0018d7..45e5a68f 100644
--- a/src/amount.h
+++ b/src/amount.h
@@ -76,7 +76,7 @@ enum parse_flags_enum_t {
PARSE_SOFT_FAIL = 0x80
};
-typedef basic_flags_t<parse_flags_enum_t, uint_least8_t> parse_flags_t;
+typedef ledger::basic_flags_t<parse_flags_enum_t, uint_least8_t> parse_flags_t;
/**
* @brief Encapsulate infinite-precision commoditized amounts
diff --git a/src/flags.h b/src/flags.h
index fb7096c0..cd01fc29 100644
--- a/src/flags.h
+++ b/src/flags.h
@@ -41,6 +41,7 @@
*/
#pragma once
+namespace ledger {
template <typename T = boost::uint_least8_t, typename U = T>
class supports_flags
@@ -182,3 +183,5 @@ public:
_flags.drop_flags(arg);
}
};
+
+} // namespace ledger
diff --git a/src/pstream.h b/src/pstream.h
index 2502fdac..a012e628 100644
--- a/src/pstream.h
+++ b/src/pstream.h
@@ -44,6 +44,8 @@
//#include <istream>
//#include <streambuf>
+namespace ledger {
+
class ptristream : public std::istream
{
class ptrinbuf : public std::streambuf
@@ -109,3 +111,5 @@ public:
rdbuf(&buf);
}
};
+
+} // namespace ledger