17-ify namespaces

This commit is contained in:
Alexey Rybalchenko
2021-01-13 15:45:38 +01:00
parent d9a5e82160
commit 4a09154a91
119 changed files with 280 additions and 847 deletions

View File

@@ -17,9 +17,7 @@
#include <string>
#include <unordered_map>
namespace fair
{
namespace mq
namespace fair::mq
{
enum class Transport
@@ -32,8 +30,7 @@ enum class Transport
struct TransportError : std::runtime_error { using std::runtime_error::runtime_error; };
} /* namespace mq */
} /* namespace fair */
} // namespace fair::mq
namespace std
{
@@ -43,9 +40,7 @@ struct hash<fair::mq::Transport> : fair::mq::tools::HashEnum<fair::mq::Transport
} /* namespace std */
namespace fair
{
namespace mq
namespace fair::mq
{
static std::unordered_map<std::string, Transport> TransportTypes {
@@ -74,7 +69,6 @@ try {
throw TransportError(tools::ToString("Unknown transport provided: ", transport));
}
} /* namespace mq */
} /* namespace fair */
} // namespace fair::mq
#endif /* FAIR_MQ_TRANSPORTS_H */