Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/internal/sio_client_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ namespace sio
unsigned client_impl::next_delay() const
{
//no jitter, fixed power root.
return (unsigned)min(m_reconn_delay * pow(1.5,m_reconn_made),m_reconn_delay_max);
return min<unsigned>(m_reconn_delay * pow(1.5,m_reconn_made),m_reconn_delay_max);
}

void client_impl::send(packet& p)
Expand Down
2 changes: 1 addition & 1 deletion src/internal/sio_client_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void set_##__FIELD__(__TYPE__ const& l) \
// Client Functions - such as send, etc.
void connect(const std::string& uri);

socket::ptr const& socket(const std::string& nsp);
::sio::socket::ptr const& socket(const std::string& nsp);

// Closes the connection
void close();
Expand Down
2 changes: 1 addition & 1 deletion src/sio_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ namespace sio

void set_reconnect_delay_max(unsigned millis);

socket::ptr const& socket(const std::string& nsp = "");
::sio::socket::ptr const& socket(const std::string& nsp = "");

// Closes the connection
void close();
Expand Down