summaryrefslogtreecommitdiffstats
path: root/src/PortID.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/PortID.hpp')
-rw-r--r--src/PortID.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/PortID.hpp b/src/PortID.hpp
index d92f08e..51db1b0 100644
--- a/src/PortID.hpp
+++ b/src/PortID.hpp
@@ -27,6 +27,8 @@
#include <tuple>
#include <utility>
+namespace patchage {
+
/// An ID for some port on a client (program)
struct PortID
{
@@ -167,12 +169,14 @@ operator<(const PortID& lhs, const PortID& rhs)
return false;
}
+} // namespace patchage
+
namespace std {
template<>
-struct hash<PortID::Type>
+struct hash<patchage::PortID::Type>
{
- size_t operator()(const PortID::Type& v) const noexcept
+ size_t operator()(const patchage::PortID::Type& v) const noexcept
{
return hash<unsigned>()(static_cast<unsigned>(v));
}