summaryrefslogtreecommitdiffstats
path: root/src/PortID.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-29 18:24:03 +0100
committerDavid Robillard <d@drobilla.net>2020-11-29 18:24:03 +0100
commit178d1cbe1dfc9e7b66c36cbb75590e1cee419174 (patch)
tree4e33ecbff68fc65d9771c2e654411ad9f1aecd86 /src/PortID.hpp
parent4265b9a78dac2b7f26f505c7b90b0d88494e93c2 (diff)
downloadpatchage-178d1cbe1dfc9e7b66c36cbb75590e1cee419174.tar.gz
patchage-178d1cbe1dfc9e7b66c36cbb75590e1cee419174.tar.bz2
patchage-178d1cbe1dfc9e7b66c36cbb75590e1cee419174.zip
Put everything in a namespace
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));
}