diff options
author | David Robillard <d@drobilla.net> | 2020-11-29 18:24:03 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-29 18:24:03 +0100 |
commit | 178d1cbe1dfc9e7b66c36cbb75590e1cee419174 (patch) | |
tree | 4e33ecbff68fc65d9771c2e654411ad9f1aecd86 /src/PortID.hpp | |
parent | 4265b9a78dac2b7f26f505c7b90b0d88494e93c2 (diff) | |
download | patchage-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.hpp | 8 |
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)); } |