Skip to content

Commit

Permalink
Fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
halx99 committed Jan 31, 2024
1 parent 5797b8a commit edf58ab
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions yasio/xxsocket.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ struct endpoint final {
auto offst = s.find(fmt);
if (offst != std::string::npos)
{
snprintf(snum,sizeof(snum), "%u", addr_bytes[idx]);
snprintf(snum, sizeof(snum), "%u", addr_bytes[idx]);
s.replace(offst, _N0, snum);
}
}
Expand Down Expand Up @@ -1135,8 +1135,10 @@ using namespace yasio::inet;
#endif
} // namespace yasio

#if defined(YASIO__HAS_CXX11)
namespace std
{ // VS2013 the operator must be at namespace std
#endif
inline bool operator<(const yasio::inet::ip::endpoint& lhs, const yasio::inet::ip::endpoint& rhs)
{ // apply operator < to operands
if (lhs.af() == AF_INET)
Expand All @@ -1147,8 +1149,9 @@ inline bool operator==(const yasio::inet::ip::endpoint& lhs, const yasio::inet::
{ // apply operator == to operands
return !(lhs < rhs) && !(rhs < lhs);
}
#if defined(YASIO__HAS_CXX11)
} // namespace std

#endif
#if defined(YASIO_HEADER_ONLY)
# include "yasio/xxsocket.cpp" // lgtm [cpp/include-non-header]
#endif
Expand Down

0 comments on commit edf58ab

Please sign in to comment.