Skip to content

Commit

Permalink
Update sio_client_impl.cpp
Browse files Browse the repository at this point in the history
Use `std::` when required. 

Even though there is a `using namespace std` this should be removed and we should add `std::` whenever possible
  • Loading branch information
jmigual authored Nov 8, 2023
1 parent 858e971 commit adca4bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/internal/sio_client_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -563,10 +563,10 @@ namespace sio
if (message && message->get_flag() == message::flag_object)
{
const object_message* obj_ptr = static_cast<object_message*>(message.get());
const map<string, message::ptr>* values = &(obj_ptr->get_map());
const std::map<std::string, message::ptr>* values = &(obj_ptr->get_map());
auto it = values->find("sid");
if (it != values->end()) {
m_sid = static_pointer_cast<string_message>(it->second)->get_string();
m_sid = std::static_pointer_cast<string_message>(it->second)->get_string();
}
}
}
Expand Down

0 comments on commit adca4bc

Please sign in to comment.