cleanup: Get rid of 'using namespaces'

In headers, this is an objectively bad practice, since the type aliases
leak into dependent code and can cause unexpected naming conflicts. In
source files, it is debatable, but I prefer explicit aliases of the form
'using Foo = Bar'. The intentions are clear, and the resulting code is
naturally resistent to naming conflicts.
This commit is contained in:
John Colvin committed 2025-01-28 19:59:08 +00:00
1 parent 2e6d12c9c1
commit 8bebbc278d
15 files changed
+336 -279

No files matched your search

@@ -88,7 +88,7 @@ struct SingleOrderMux {
struct InitState {
enum class StateType { Start = 0, Securities = 1, Admin = 2 };
map<StateType, bool> state_map = {
std::map<StateType, bool> state_map = {
{StateType::Start, false},
{StateType::Securities, false},
{StateType::Admin, false}};
@@ -492,4 +492,4 @@ SingleOrderMux *CCAPIExecutionGateway::_find_mux_from_orderkey(OrderKey key) {
return _find_mux(it->second.routing_record);
}
} // namespace bts::orderman
} // namespace bts::orderman