Skip to content

Commit 2924a9f

Browse files
committed
Use explicit template parametrization
The arguments are of different types, so parameter deduction will not work.
1 parent 2ff681b commit 2924a9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/internal/sio_client_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ namespace sio
321321
unsigned client_impl::next_delay() const
322322
{
323323
//no jitter, fixed power root.
324-
return (unsigned)min(m_reconn_delay * pow(1.5,m_reconn_made),m_reconn_delay_max);
324+
return min<unsigned>(m_reconn_delay * pow(1.5,m_reconn_made),m_reconn_delay_max);
325325
}
326326

327327
void client_impl::send(packet& p)

0 commit comments

Comments
 (0)