Commit 261e6770 authored by Marek Trtik's avatar Marek Trtik
Browse files

Removal of namespace usings.

parent f5054fd5
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -5,11 +5,11 @@
#include <osi/index.hpp>
#include <utils/serialization.hpp>

using namespace std;
using namespace net;
namespace net {


Driver::Driver()
    : Runner(self_name()), socket(make_unique<GNSSocket>())
    : Runner(self_name()), socket(std::make_unique<GNSSocket>())
{
}

@@ -77,7 +77,7 @@ SendResult Driver::broadcast(
    int channel)
{
    bool all_success = true;
    for (const auto& connection : connections | views::values)
    for (const auto& connection : connections | std::views::values)
    {
        if (!connection.active) continue;
        auto result = socket->send(connection.id, data, reliability, ordering, channel);
@@ -153,4 +153,4 @@ void Driver::handle_packet(ConnectionId from, NetworkMessage* message)
}


}